ubuntu14.04 pycharm运行github上的例子https://github.com/yunjey/pytorch-tutorial/blob/master/tutorials/01-basics/feedforward_neural_network/main.y ,报错标题中的错误AttributeError: module 'torch' has no attribute 'device'
查了安装包pytorch版本是0.2,看到此文“Pytorch 0.4.0迁移指南https://blog.csdn.net/sunqiande88/article/details/80172391”之后,知道要升级安装Pytorch 0.4.0,于是conda install pytorch==0.4.0,问题解决。