【深度学习】Could not load library libcudnn_cnn_infer.so.8.

avatar
作者
筋斗云
阅读量:0

会报错:
/opt/conda/lib/python3.10/site-packages/torch/nn/utils/weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn(“torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.”)
Loaded checkpoint ‘checkpoints_v2/converter/checkpoint.pth’
missing/unexpected keys: [] []
OpenVoice version: v2
Could not load library libcudnn_cnn_infer.so.8. Error: /lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8: undefined symbol: _ZN11nvrtcHelper4loadEb, version libcudnn_ops_infer.so.8
Please make sure libcudnn_cnn_infer.so.8 is in your library path!
Aborted (core dumped)

其实就是找不到你的libcudnn_cnn_infer.so.8.文件了,要加入环境变量。

分析libcudnn_cnn_infer.so.8.在哪里,首先:

which python 

然后可以用find指令找:

 

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!