Issue 1:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary): 1.12.0

TensorFlow version: 1.12.0

Python version: 3.6

Installed using virtualenv? pip? conda?: conda

Bazel version (if compiling from source): 0.22.0

GCC/Compiler version (if compiling from source): 5.4.0

CUDA/cuDNN version: cuda=10.0/cudnn=7.4.2

GPU model and memory: RTX 2080

Describe the problem

I installed the everything and ran the tests for cuda and cudnn that were said from and they both passed normally. Running small tests with tensorflow also worked, i.e. a linear regression model. However, I was trying to run a file using keras and doing a more complicated model and it threw errors when it started running an individual epoch. I also just ran the code with only a small portion of the images.

I tensorflow/stream_executor/platform/default/dso_loader.cc:161] successfully opened CUDA library libcudnn.so.7 locally
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR

...
...

tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d/Conv2D}}]]
[[conv2d_transpose_2/Shape/_1171]]

Running the code normally with tensorflow works fine, only the gpu version is failing. I tried both building it from source and using tf-nightly-gpu.

Issue 2:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): 1.8.0

Python version: 3.5

Bazel version (if compiling from source): 0.14.1

GCC/Compiler version (if compiling from source): 5.4.0

CUDA/cuDNN version: 9.0

GPU model and memory: Tesla K40c, 11440 MBytes

Exact command to reproduce: see below

Describe the problem

I want the embedded python in my C++ code to import tensorflow, but the line "import tensorflow" gives an error at run time. That's no happening while importing other python modules. There is no problem with using tensorflow from my python shell/scripts, I can also compile and use custom ops written in C++, so that proofs that the installation worked without problems. I don't know if it's relevant, but my C++ library already uses tensorflow as third part shared library.

Here my very easy C++ code that calls python:

PyObject* pInt;

Py_Initialize();

PyRun_SimpleString("import tensorflow \n"
"print('Hello TF!!!')");

Py_Finalize();

Here is the error I get at runtime:

Traceback (most recent call last):

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "/usr/lib/python3.5/imp.py", line 242, in load_module

return load_dynamic(name, filename, file)

File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic

return _load(spec)

ImportError: /usr/local/lib/python3.5/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 24, in

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

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in

from tensorflow.python import pywrap_tensorflow

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "/usr/lib/python3.5/imp.py", line 242, in load_module

return load_dynamic(name, filename, file)

File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic

return _load(spec)

ImportError: /usr/local/lib/python3.5/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv

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.