close

[Solved] Failed to get convolution algorithm. This is probably because cuDNN failed to initialize,

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, Error Occurs?

Today I get the following error Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, in python.

How To Solve Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, Error ?

  1. How To Solve Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, Error ?

    To Solve Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, Error I had this error and I fixed it by uninstalling all CUDA and cuDNN versions from my system. Then I installed CUDA Toolkit 9.0 (without any patches) and cuDNN v7.4.1 for CUDA 9.0.

  2. Failed to get convolution algorithm. This is probably because cuDNN failed to initialize,

    To Solve Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, Error I had this error and I fixed it by uninstalling all CUDA and cuDNN versions from my system. Then I installed CUDA Toolkit 9.0 (without any patches) and cuDNN v7.4.1 for CUDA 9.0.

Solution 1

I had this error and I fixed it by uninstalling all CUDA and cuDNN versions from my system. Then I installed CUDA Toolkit 9.0 (without any patches) and cuDNN v7.4.1 for CUDA 9.0.

Solution 2

I had the same issue, I solved it thanks to that :

os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'

or

physical_devices = tf.config.experimental.list_physical_devices('GPU')
if len(physical_devices) > 0:
   tf.config.experimental.set_memory_growth(physical_devices[0], True)

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read