版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huuuuuuuu/article/details/88798206
莫名其妙 import torch,出现undefined symbol: nvrtcGetProgramLogSize错误
解决方法:
- 卸载
conda uninstall pytorch
conda uninstall libtorch
pip uninstall torch
pip uninstall torch # 两遍
- 安装
conda install pytorch cuda80 -c soumith
(不要用conda install pytorch)