AttributeError: ‘module’ object has no attribute’xxx’解决方法 如果是更新了pytorch版本的话,出现的问题原因大概率是因为版本过新 不兼容的问题 这个时候,需要对pytorch版本降级 使用conda包管理的情况下: 比如你想降级到以前的v0.1.10版本 conda install pytorch=0.1.10 -c soumith