我的测试:
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()`
错误 :
c:\l\work\tensorflow-1.1.0\tensorflow\stream_executor\cuda\cuda_driver.cc:405]
cuInit调用失败: CUDA_ERROR_NO_DEVICE
-> 但是"/cpu:0"可以正常工作
配置 :
- CUDA版本9.1
- tensorflow-1.1.0
- Windows 10
- cudnn64_7.dll (安装在C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin)
- 仅tensorflow-gpu已安装在我的Conda环境中
为什么Tensorflow无法检测到我的GPU?
os.environ["CUDA_VISIBLE_DEVICES"]="1"
。你的系统上有多少个GPU?截图只显示了一个,设备ID为0
... - GPhilo