Je n'arrive pas à le faire fonctionner! J'ai essayé pendant presque deux jours maintenant. Installé Cuda8 et CuDnn 6 - ne fonctionnait pas. ajouté la solution écrite en ImportError: libcudnn when running a TensorFlow program ici. L'erreur que je reçois -ImportError: libcudnn.so.6: impossible d'ouvrir le fichier d'objet partagé: aucun fichier ou répertoire de ce type Tensorflow
retraçage (le plus récent appel dernier):
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/shenath/tensorflow/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/shenath/tensorflow/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/home/shenath/tensorflow/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 "<stdin>", line 1, in <module>
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/shenath/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/shenath/tensorflow/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/shenath/tensorflow/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/home/shenath/tensorflow/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.
Je suis nouveau à cela. Toute aide sera vraiment appréciée. Si vous avez besoin de plus d'informations, je serai heureux de fournir. Assurez-vous qu'ils se trouvent dans le bon répertoire après avoir installé cuda
et cudnn
.
Merci! pour quelqu'un d'autre lire ce que j'ai fait était - je frais installer et suivi le lien Nvidia Ultraviolet posté. Lors de l'installation de libcupti-dev, j'ai remarqué que "/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.6 n'est pas un lien symbolique". Ce que je devais faire était de taper «sudo cp -P cuda/include/cudnn.h/usr/local/cuda/include» et «sudo cp -P cuda/lib64/libcudnn */usr/local/cuda/lib64» des instructions données sur le site de Nvidia. Et maintenant ça fonctionne correctement! –