-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
cannot import name 'container_abcs' from 'torch._six' #420
Comments
I'm away from my computer at the moment, but will create a pull request later for the code:
To be added to timm/models/layers/helpers.py |
@aboutmedicine thanks for the report, I've been burned by doing version checks like that in the past, how about a |
On second thought should probably just use the proper Python import as I'm pretty sure collections.abc is in any Python3 version that'd be used with this. The ._six code just came from a cut & paste. |
Thanks for your help, and sounds like a good plan #421 |
This might be silly but its also missing a torch import:
|
Update collections.abc import to avoid pytorch 1.8 issue. Fix huggingface#420
The text was updated successfully, but these errors were encountered: