AttributeError: module 'torch' has no attribute 'flip'

运行基于pytorch写的程序时出现"AttributeError: module ‘torch’ has no attribute ‘flip’"的错误提示,修改方法:
将pytorch版本升级到1.0以上即可

posted @ 2022-11-13 22:35  dlhl  阅读(0)  评论(0)    收藏  举报