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

[Issue #578] Remove dependency of imagenet_dataset.py on torch._six #579

Merged
merged 2 commits into from
Mar 6, 2021

Conversation

0xEljh
Copy link
Contributor

@0xEljh 0xEljh commented Mar 6, 2021

As of Torch PR #46579, it is no longer possible to import PY3 from torch._six

This small change simply removes the dependency on torch._six for checking if Python 3 is used.

Fixes #578

- 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
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.
@Borda Borda added the fix fixing issues... label Mar 6, 2021
@Borda Borda merged commit 9ab43c4 into Lightning-Universe:master Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix fixing issues...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError thrown when importing PY3 from torch._six
2 participants