While trying to validate the installation of tensorflow-gpu, I get an ImportError when trying to execute \"import tensorflow as tf\". I am using a Quadro K620 on Windows 7.
https://github.com/tensorflow/tensorflow/issues/7705
switch to cuDNN 5.1 instead of 6.0
After you install the CUDA Drivers you must download cuDNN and release it. After that you get to copy the cudnn64_5.dll
to PATH.
If that doesn't work, move the cudnn64_5.dll
to
NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin
and try it again. Otherwise you'd meet some error that you see.
I had the same error with anaconda, it was previously installed with another program through anaconda. Installing again through conda-forge
worked: conda install -c conda-forge tensorflow
I still got this error after installing cuDNN 5.1 (yes, I had PATH set correctly). I had better luck installing tensorflow_gpu from this site. This requires cuDNN 6.0, not 5.1. Unfortunately they currently only have Tensorflow 1.1 for GPU systems.
I came across the same issue today, please switch to cuDNN v5.1 Library for Windows instead as @mickdelaney suggested and then try to
Check environment settings of CUDA, normally all the settings of CUDA had been added to Windows environment
Copy files in bin
, lib
and include
of cuDNN to bin
, lib
and include
of CUDA respectively. Normally the directory is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
And then you can import tensorflow and run your code. Good luck!
you could uninstall the current version of tensorflow and try a low version such as TensorFlow 0.12 using the code
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
https://blog.csdn.net/baidu_36669549/article/details/79734590