i was troubled by this issue for 3 days and I have tried many ways to solve it but nothing worked.So I have to downgraded my python from 3.9 to 3.6,Cuda from 11.5 to 11.2,tensorflow from 2.6 to 2.5 , and cudnn from a newer version(i forgot it lol) to 8.2.After that it finally worked.
Hi @user43227 can you check if you have zlib available in your environment?
This was a new dependency introduced first in cuDNN 8.3.0. See the following guide for getting zlib
After I got the problem, I installed exactly 2.8 Tensorflow, exactly 11.2 cuda and exactly 8.1 cuDNN, as it’s written here here: Build from source on Windows | TensorFlow
I guess, the main problem is with cuDNN, because with simple forward neural networks everything works, but when I added Convolutional layers, I got the problem.
Right now I reinstalled, as I wrote below, and everything works now