yeah I was running the code with python 2.7 as given in it’s requirement in the virtual environment but in base environment it was python 3.8 .
I am not able to figure out the problem causing CUDNN error, whenever I try to run any code on my GPU this happens, may be due to CUDA or the requirements are not getting met, since I am beginner in this