pytorch运行出错:AttributeError: module ‘torch‘ has no attribute ‘ops‘

我这里是升级torchvision后问题解决了

pip install torch==0.4.1 torchvision==0.4.0   -i  https://pypi.tuna.tsinghua.edu.cn/simple/
python = 3.6
torch = 0.4.1
torchvision = 0.4.0

你可能感兴趣的:(环境配置,bug,pytorch)