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

I am using tensorflow with cuda to train my deep learning model. My laptop is asus tuf f15 with rtx3070 laptop gpu. OS is Windows 10
Using Anaconda Package with python 3.8
My tensorflow version is 2.4.1
My CUDA Version is cuda_11.0.2_451.48_win10
My Cudnn is cudnn-11.2-windows-x64-v8.1.0.77
I have not installed visual studio (Only installed anaconda, tf ,cudnn and cuda)
I am getting this error
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 sequential/conv2d/Conv2D (defined at :1) ]] [Op:__inference_train_function_870]
Is there any incompatibilty between my TF CUDA and cudnn version. if there is kindly suggest the compatible versions.
Thanks and Regards

1 Like

Hi @hamzanaeem8025 ,
This might be the issue with your tf version.
Can you please check the below post.

In case if the issue persist, i would suggest you to reach out to TF Forum.

Thanks!