Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'torch._six' #1787

Open
xujin1184104394 opened this issue Mar 22, 2024 · 1 comment
Open

No module named 'torch._six' #1787

xujin1184104394 opened this issue Mar 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xujin1184104394
Copy link

image

@xujin1184104394 xujin1184104394 added the bug Something isn't working label Mar 22, 2024
@youngsoul0731
Copy link

It seems that your torch version >= 2.0, try to use a lower version or comment from torch._six import string_classes and replace line 42 withelif isinstance(value, str): in apex/amp/_initialize.py. It's a bug caused by apex because this torch version doesn't have torch._six.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants