python - TensorFlow 1.3 GPU version not working on Windows 7 -


i beginner machine learning, , trying set tensorflow python environment using anaconda. however, have been dealing common problem of "no module named "pywrap_tensorflow_internal""

>>> import tensorflow tf traceback (most recent call last):   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 18, in swig_import_helper     return importlib.import_module(mname)   file "c:\anaconda3\envs\tensorflow\lib\importlib\__init__.py", line 126, in im port_module     return _bootstrap._gcd_import(name[level:], package, level)   file "<frozen importlib._bootstrap>", line 985, in _gcd_import   file "<frozen importlib._bootstrap>", line 968, in _find_and_load   file "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked   file "<frozen importlib._bootstrap>", line 666, in _load_unlocked   file "<frozen importlib._bootstrap>", line 577, in module_from_spec   file "<frozen importlib._bootstrap_external>", line 938, in create_module   file "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed importerror: dll load failed: specified module not found.  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow.py", line 41, in <module>     tensorflow.python.pywrap_tensorflow_internal import *   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 21, in <module>     _pywrap_tensorflow_internal = swig_import_helper()   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 20, in swig_import_helper     return importlib.import_module('_pywrap_tensorflow_internal')   file "c:\anaconda3\envs\tensorflow\lib\importlib\__init__.py", line 126, in im port_module     return _bootstrap._gcd_import(name[level:], package, level) importerror: no module named '_pywrap_tensorflow_internal'  during handling of above exception, exception occurred:  traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\__init__.py", line 24, in <module>     tensorflow.python import *   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\__init_ _.py", line 49, in <module>     tensorflow.python import pywrap_tensorflow   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow.py", line 52, in <module>     raise importerror(msg) importerror: traceback (most recent call last):   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 18, in swig_import_helper     return importlib.import_module(mname)   file "c:\anaconda3\envs\tensorflow\lib\importlib\__init__.py", line 126, in im port_module     return _bootstrap._gcd_import(name[level:], package, level)   file "<frozen importlib._bootstrap>", line 985, in _gcd_import   file "<frozen importlib._bootstrap>", line 968, in _find_and_load   file "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked   file "<frozen importlib._bootstrap>", line 666, in _load_unlocked   file "<frozen importlib._bootstrap>", line 577, in module_from_spec   file "<frozen importlib._bootstrap_external>", line 938, in create_module   file "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed importerror: dll load failed: specified module not found.  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow.py", line 41, in <module>     tensorflow.python.pywrap_tensorflow_internal import *   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 21, in <module>     _pywrap_tensorflow_internal = swig_import_helper()   file "c:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\pywrap_ tensorflow_internal.py", line 20, in swig_import_helper     return importlib.import_module('_pywrap_tensorflow_internal')   file "c:\anaconda3\envs\tensorflow\lib\importlib\__init__.py", line 126, in im port_module     return _bootstrap._gcd_import(name[level:], package, level) importerror: no module named '_pywrap_tensorflow_internal' 

despite being same error many other questions present, none of solutions seem work. have msvcp140.dll installed , pointed in %path% , i'm running on python 3.5. believe problem lie within cuda, problem not arise when run cpu version of tensorflow

however, i've had difficulty figuring out what's wrong cuda setup. installed cuda 8 , cudnn v5.1. here cuda install folder looks like. cudnn files extracted cudnn zip.

in addition, here relevant parts of my %path%:

c:\program files\nvidia gpu computing toolkit\cuda\cudann\bin\cudnn64_5.dll; c:\program files\nvidia gpu computing toolkit\cuda\cudann\include\cudnn.h; c:\program files\nvidia gpu computing toolkit\cuda\cudann\lib\x64\cudnn.lib; c:\program files\nvidia gpu computing toolkit\cuda\lib; c:\windows\system32\msvcp140.dll; c:\program files\nvidia gpu computing toolkit\cuda\v8.0\lib; c:\program files\nvidia gpu computing toolkit\cuda\v8.0\extras\cupti\libx64; c:\windows\syswow64\msvcp140.dll; c:\program files\nvidia gpu computing toolkit\cuda; c:\program files\nvidia gpu computing toolkit\cuda\v8.0\bin; c:\program files\nvidia gpu computing toolkit\cuda\v8.0\libnvvp; 

i have absolutely no idea wrong setup, appreciated.

if installed gpu version of tensorflow 1.3 (which released yesterday), released pip package requires cudnn 6. can install nvidia's website. make sure directory containing file cudnn64_6.dll included in %path% environment variable.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -