My test :
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()`
Error :
c:lworkensorflow-1.1.0ensorflowstream_executorcudacuda_driver.cc:405]
failed call to cuInit: CUDA_ERROR_NO_DEVICE
-> but "/cpu:0" works fine
Config :
nvidia-smi :
- CUDA Version 9.1
- tensorflow-1.1.0
- Windows 10
- cudnn64_7.dll (installed in C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.1in)
- Only tensorflow-gpu is installed in my Conda environment
Why can't Tensorflow detect my GPU ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…