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

Allow for torchvision version to be >= 0.10.0 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

finlay96
Copy link

Issue
Previous method of directly compaing the third value of the torchvision versioning torchvision.__version__[:3] fails once the version gets above 0.9.0 as 0.1.0 and 0.10.0 get treated as the same value.

Solution
Use the whole segment between the first and second decimal point to get the subversion such that 0.1.0 and 0.10.0 are now different

Possible Issues
This solution will no longer work if torchvision increases its major version up to 1..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant