莫名其妙 import torch,出现undefined symbol: nvrtcGetProgramLogSize错误
原因:
初步判断是因为torchvision的冲突导致
解决方法:卸掉重装
- 卸载
conda uninstall pytorch
conda uninstall libtorch
pip uninstall torch
pip uninstall torch # 两遍 - 安装
conda install pytorch cuda80 -c soumith
(不要用conda install pytorch)
本文解决了在使用torch时遇到的undefined symbol:nvrtcGetProgramLogSize错误。该问题是由于torchvision的冲突引起,解决方法是先卸载相关的torch包,然后重新安装特定版本的pytorch。
11万+





