could not load library cudnn_cnn_infer64_8.dll. error code 126
How to Fix Error 126 – Could Not Load Library Cudnn_Infer64_8.dll
This error is caused by a problem with the Cudnn C++ library. You need to upgrade your C++ library to a recent version. The latest version of this library is cudnn-11.5-windows-x64-v8.dll. You can download it from here. The following are the steps you need to take in order to fix this error.