Version mismatch||Loaded runtime CuDNN library: 7.4.2 but source was compiled with: 7.6.0. CuDNN library major

1. Problem description

Environment configuration: Win10 + MX130 + CUDA 10.0 + cuDNN 7.4.2 + Python3.6 + TensorFlow-GPU2.0.0

Running a simple neural network error: Loaded runtime CuDNN library: 7.4.2 but source was compiled with: 7.6.0. CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version, as shown in the figure shown

Second, the solution

Step 1: Go to the official website to download cudnn 7.6.0 to replace 7.4.2, the official download website is: cuDNN Archive | NVIDIA Developer

Step 2: Unzip the file and put it in the appropriate location

        Find the compressed package downloaded from the browser and unzip it. After decompression, enter the folder, and copy the .h .lib and .dll files to the include, lib/x64, bin folders under the path where CUDA is installed.

 Note: Remember to close the relevant running programs before overwriting the corresponding files!

After re-running the program, the results are as follows, the problem is solved

other supplements

TensorFlow||Installation of TensorFlow-GPU version under Win10 (MX130+CUDA 10.0+cuDNN 7.4.2+Python3.6+TensorFlow-GPU2.0.0)_Inochigohan's Blog - CSDN Blog

Guess you like

Origin blog.csdn.net/Inochigohan/article/details/122778757