打开python命令行,输入以下命令:
python -c "from tensorflow.python.client import device_lib;device_lib.list_local_devices()"
打开python命令行,输入以下命令:
python -c "from tensorflow.python.client import device_lib;device_lib.list_local_devices()"
转载于:https://www.cnblogs.com/DragonStart/p/10700239.html