According to your graphics card model and graphics card driver version, install the corresponding cuda and cudnn.
Check the Cuda version
Open cmd and enter nvcc --version
View Cudnn version
Enter the cuda installation directory
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include
Open the cudnn_version.h file with Visual Studio
Cudnn version is 8.8.1