-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[reland][dynamo] Mark a vt unspecialized nn module variable source earlier #155099
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/155099
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit dfeb6ba with merge base 8f08f90 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@anijain2305 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1b7f9f2
to
e4a2ed0
Compare
@anijain2305 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
e4a2ed0
to
dfeb6ba
Compare
@anijain2305 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Reland of pytorch/pytorch#154780 Fixes #ISSUE_NUMBER cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames X-link: pytorch/pytorch#155099 Reviewed By: williamwen42 Differential Revision: D75928791 Pulled By: anijain2305 fbshipit-source-id: 55f8a214e3b0ff573dd1bdd1fb5fb34a220a620d
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…rlier (pytorch#155099) Reland of pytorch#154780 Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#155099 Approved by: https://github.com/williamwen42
or ( | ||
source.guard_source().is_unspecialized_nn_module() | ||
and not config.allow_unspec_int_on_nn_module | ||
) |
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.
Maybe this was intended from the get-go (i.e., specialize on int attr of all nn modules, not just the global ones). Regardless, adding this caused extra recompilations which didn't exist before 2.8: #161372.
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.
Yes, this is intended. This removes the inconsistency.
Reland of #154780
Fixes #ISSUE_NUMBER
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames