https://github.com/tensorflow/tensorflow/issues/21832
原来是tensorflow-gpu-1.10.0,准备改为1.9.0试试,同样的问题;
应该是cuda和驱动不匹配的问题;自动安装的还能不匹配,我也是醉了;
怎么查看cuda和驱动是否安装正确?
卸载CUDA、driver,并重新安装;
CUDA版本:https://developer.nvidia.com/cuda-toolkit-archive
cudnn版本:需要注册账号登录下载;
https://developer.nvidia.com/rdp/cudnn-archive
驱动安装;
win10安装cuda需要先卸载原来的驱动重启可是重启之后还是原来的驱动呀;
如果已经安装显卡驱动的系统,想安装最新版本的显卡驱动,则需要在安全模式下卸载已经安装的显卡驱动(非安全模式下卸载显卡驱动往往会导致新版本显卡驱动安装和cuda安装过程中出现不知名的错误和失败)
win10安全模式参考:
https://jingyan.baidu.com/article/fdbd4277f29bddb89e3f4896.html
然后安全模式下安装最新版本的显卡驱动(勾上“执行清洁安装”选项),高级选项中根据自己需要选择相应的安装包选项;
我在安全模式下可以卸载driver,但是在安全模式下不能安装CUDA;最后还是选择在一般使用的模式下安装CUDA,同时安装driver和cudnn;
参考
1. window10上通过Anaconda安装TensorFlow-GPU;
https://tensorflow.google.cn/install/source_windows
Pip install tensorflow-gpu==1.8.0
https://tensorflow.google.cn/install/pip
完