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

setup: Add version for torch dependency #1067

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

seemethere
Copy link
Member

@seemethere seemethere commented Nov 3, 2020

Hard locks the package to a specific version of torch if defined

Resolves #1063

Signed-off-by: Eli Uriegas eliuriegas@fb.com

Hard locks the package to a specific version of torch if defined

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
@zhangguanheng66
Copy link
Contributor

Fix #1063

Copy link
Contributor

@mthrok mthrok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mthrok
Copy link
Contributor

mthrok commented Nov 3, 2020

Do we want to have this on release/0.7 branch??


pytorch_package_dep = 'torch'
if pytorch_package_version is not None:
pytorch_package_dep += "==" + pytorch_package_version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the cuda version etc factor in here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it does not, but then again we don't account for cuda version in either audio or vision either

Copy link
Contributor

@zhangguanheng66 zhangguanheng66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Does the package fail for the CI test?

@zhangguanheng66
Copy link
Contributor

Just fixed the CI tests. Let's re-run them before merging.

@seemethere
Copy link
Member Author

I think CI failures are unrelated to this change, going to go ahead and merge

@seemethere seemethere merged commit 9ebfb7b into pytorch:master Nov 9, 2020
@seemethere seemethere deleted the torch_version branch November 9, 2020 17:43
zhangguanheng66 pushed a commit to zhangguanheng66/text that referenced this pull request Nov 20, 2020
setup: Add version for torch dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip install torchtext==0.7.0 installs incompatible PyTorch 1.7.0
4 participants