-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Stop immediately specializing common constants 0/1 for plain int #128327
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/128327
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c3903ed with merge base 1e27af3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
oof dis CI |
|
It looks like this is just grinding recompilation counts though, it seems |
|
@anijain2305 will finish this off. (Animesh, feel free to open a new PR for yourself) |
I don't. This is just so incredibly inside baseball, I'm not sure what someone is going to do with this information. In practice, you figure this out by looking at the recompiles logs, I think... |
|
To make rollout of this safer, I'm going to split this into bugfixes and then the actually policy change |
|
That being said, putting it in https://pytorch.org/docs/main/torch.compiler_dynamo_deepdive.html#are-always-specialized would be nice. |
|
Done |
These bug fixes will be exercised in #128327 but I separate them from the actual policy change (which is more risky) Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #129961 Approved by: https://github.com/lezcano
… inputs (#129983) Exercised in #128327 Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #129983 Approved by: https://github.com/anijain2305
|
@pytorchbot merge |
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 |
Stack from ghstack (oldest at bottom):
Fixes #128319
Signed-off-by: Edward Z. Yang ezyang@meta.com
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang