打开python命令行,输入以下命令:

python -c "from tensorflow.python.client import device_lib;device_lib.list_local_devices()"

相关文章: