tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found

tensorflow和cuda版本不匹配
查看本机cuda版本:
nvidia控制面板-左下角系统信息-组件-NVCUDA64.DLL-产品名称
我的是11.2.162

安装NV cuda toolkit
https://developer.nvidia.com/cuda-downloads

最后再安装cudnn:https://developer.nvidia.com/rdp/cudnn-archive
安装到C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.6bin

Could not load library cudnn_cnn_infer64_8.dll. Error code 193
错误原因:TensorFlow,cuda,cudnn版本不匹配
https://www.tensorflow.org/install/source_windows
版本对应表