Closed acseckin closed 3 years ago
@acseckin
Can you please go through TensorFlow GPU instructions page and see if it helps you.I guess the problem with the compatibility. Upgrade libcudnn packages to 7.6.2 and Initialize your code with following code and let us know how it progresses.
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
sess = tf.Session(config=config)
Thanks!
@acseckin
Any update on this issue please? Thanks!
Still same. Can you share a working/ compatible versions. I think some version of tensorflow doesnt support higer cuda versions. I tried a lot of combinations (tensorflow, keras cuda and cudnn) but no response for gpu. code works fine for cpu.
Hope this helps. I was facing the similar issue with: tensorlfow 2.0 CUDA 10.0 cuDNN 7.6.5
I downgraded to cuDNN 7.6.2 and my model is training now. I tried cuDNN 7.5.1 before cuDNN 7.6.2, but that complained that source was built with 7.6 +
I was having this issue when running with TensorFlow v1.15, CUDA 10.0.130, CUDNN 7.6.0.64 in eager mode. Adding allow_growth
as @acseckin suggested fixed the problem.
@acseckin Can I close this issue as it has been solved. Thanks!
Also just a note, I saw the error again when running another piece of code. Upgrading CUDNN solved it:
sudo apt-get install --no-install-recommends libcudnn7=7.6.2.24-1+cuda10.0
I guess this should be updated in the documentation especially here so there is no confusion progressing furthur.
For TF-GPU , CUDA, CUDNN compatibility refer tested build config chart. Closing this issue since it's resolved. Feel free to reopen if necessary. Thanks!
mnist_mlp.py (https://github.com/keras-team/keras/blob/master/examples/mnist_mlp.py) works perfectly but code which is given below gives me this error:
Project code derived from https://machinelearningmastery.com/how-to-develop-a-pix2pix-gan-for-image-to-image-translation/
code: