0
点赞
收藏
分享

微信扫一扫

ImportError: cannot import name ‘int_classes‘ from ‘torch._six‘

zhaoxj0217 2022-02-04 阅读 527
python

解决方法:

版本不匹配,改成项目的版本

或者:

from torch._six import string_classes, int_classes

改成:

int_classes = int

string_classes = str
举报

相关推荐

0 条评论