-
Notifications
You must be signed in to change notification settings - Fork 321
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
ImportError thrown when importing PY3 from torch._six #578
Labels
Comments
Hi! thanks for your contribution!, great first issue! |
Borda
pushed a commit
that referenced
this issue
Mar 6, 2021
…579) * Update imagenet_dataset.py dependencies - The import PY3 from Torch._six no longer exists as of Torch PR #46579 - Updated to use PY37, which is the current only available import * Remove torch._six dependency from imagenet_dataset.py Removed dependency on torch._six for checking if Python 3 is used. This relaxes the condition of Python >=3.7 if dependency is to be kept.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
ImportError is thrown by imagenet_dataset.py due to inability to import PY3 from torch._six.
PY3 is no longer available for import from torch._six as of PR #46579 in Torch.
To Reproduce
This bug was found when trying to import the AMDIM bolts package
Steps to reproduce the behavior:
from pl_bolts.models.self_supervised import AMDIM
Expected behavior
Successful import
Environment
The text was updated successfully, but these errors were encountered: