Issue 1:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Pro Build 17134

TensorFlow installed from (source or binary): Package (pip install tensorflow-gpu)

TensorFlow version: 1.12.0

Python version: 3.6.7

Installed using virtualenv? pip? conda?: pip

CUDA/cuDNN version: CUDA 9/CuDNN 7.4.1.5

GPU model and memory: GTX 1070ti 416.34

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

I have been working with some code in keras that works fine with the cpu version of tensorflow (pip install tensorflow) Since each epoch was taking a minute to run, I wanted to throw my 1070ti at the problem. I installed tensorflow-gpu (pip install tensorflow-gpu) along with CUDA and CuDNN. I then did a quick restart but when I went to run my code again it didn't make keras use the gpu version of tensorflow. I uninstalled tensorflow (pip uninstall tensorflow) gave it another restart and now getting the following error with the DLL load failing. Reinstalling the cpu version of Tensorflow getting it working again but only on the CPU. I can't see what I have done wrong but any help is appreciated. I have a look through some of the past issues but the solutions only seem to be for the CPU package not importing. Might have missed some finesse there so please do point out the obvious.

Any other info / logs

import tensorflow as tf

Traceback (most recent call last):

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\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 "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module

return load_dynamic(name, filename, file)

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic

return _load(spec)

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "<pyshell#0>", line 1, in

import tensorflow as tf

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 24, in

from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 49, in

from tensorflow.python import pywrap_tensorflow

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\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 "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module

return load_dynamic(name, filename, file)

File "C:\Users\natha\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic

return _load(spec)

ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

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

above this error message when asking for help.

Issue 2:
As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:

ImportError: DLL load failed:

A crash with return code 132

Our recommendation is to build TF from sources on these systems.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu/windows/macos

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.6 and up

Python version: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: any

GPU model and memory: any

Exact command to reproduce: python -c "import tensorflow as tf"