Make sure your cuDNN version is within the range of versions supported by TensorFlow.
For example, installed tensorflow-gpu maximum support cuDNN to 11.x, but your cuDNN version is 12.x.