Wednesday, October 18, 2017

Tensorflow GPU expects cuDNN v6.0

The fix for the error below is to install cuDNN v6.0.

 python -c "import tensorflow as tf; sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))"
Traceback (most recent call last):
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/__init__.py", line 24, in
    from tensorflow.python import *
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 49, in
    from tensorflow.python import pywrap_tensorflow
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/home/depappas/python_virtual_env/deep_learning_3.5/lib/python3.5/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace

above this error message when asking for help.

No comments:

Post a Comment