RuntimeError: (PreconditionNotMet) Cannot load cudnn shared library. Cannot invoke method cudnnGetVersion. [Hint: cudnn_dso_handle should not be null.] (at /paddle/paddle/fluid/platform/dynload/cudnn.cc:59)
[operator < fill_constant > error]
解决方法:
1.https://blog.csdn.net/w5688414/article/details/118548091
如果这个不行的话,看下去
因为我的服务器没有sudo权限,也找不到cuda路径,可能是管理员隐藏了。所以这个方法解决不了,但是明确告诉我们上面是有cuda的
2.我的是linux上的anaconda环境下弄的
我的解决方法是创建新的虚拟环境后下载了pytorch,然后再设置export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wuyu/anaconda3/envs/paddle_env/lib,注意这个lib是我创建的虚拟环境下的lib,而不是/usr/local/lib,我的不知道为什么设置后者不行