问题描述:

NotSupportedError: slicing multiple dimensions at the same time isn’t supported yet
NotSupportedError: slicing multiple dimensions at the same time isn't supported yet

       看了好多博客都写的是将pytorch版本从0.4.1升到pytorch1.0,但是升版本之后,在运行其他包的时候还会报错。

解决办法:

根本原因是pytorch版本与torchvision版本不匹配。卸载pytorch和torchvision之后,重新安装pytorch0.4.1及对应版本的torchvision:conda install pytorch=0.4.1 torchvision即可

本文作者:耗子
github:https://github.com/lh641446825
知乎:https://www.zhihu.com/people/hao-zi-meng-jian-mao/activities
博客园:https://www.cnblogs.com/lh641446825/
欢迎关注!

欢迎关注和转载!

相关文章: