-
Notifications
You must be signed in to change notification settings - Fork 317
use pytorch version env variable #373
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/373
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 58f23c2 with merge base bc2f8b7 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -88,6 +88,16 @@ def get_extensions(): | |||
|
|||
return ext_modules | |||
|
|||
# Mimic code from torchvision https://github.com/pytorch/vision/blob/143d078b28f00471156a4e562dd3836370acc9ee/setup.py#L58 | |||
pytorch_dep = "torch" | |||
if os.getenv("PYTORCH_VERSION"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, would need to check in workflow that PYTORCH_VERSION is actually being set correcty when running nightly build
This reverts commit aa61c45.
Big thanks to @atalman for finding this trick
Because this was the right incantation to make sure the fp6 kernels are correctly build and packaged using pypi