-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Size oblivious test for slice optimization #119625
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
Fixes #119623 Signed-off-by: Edward Z. Yang <ezyang@meta.com> [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/119625
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5c9ef41 with merge base a82c507 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Fixes #119623 Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
|
@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 |
| if (!disable_slice_optimization && start == 0 && length == stop && | ||
| if (!disable_slice_optimization && | ||
| TORCH_GUARD_SIZE_OBLIVIOUS(start.sym_eq(0)) && length == stop && | ||
| step == 1) { |
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.
curiosity q: I would naively have thought that we'll (eventually) need the same treatment for step == 1 here. Is that wrong?
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.
Unclear. This could only matter if you had an unbacked SymInt specifying your step... which is a hard situation to imagine. (But yes, if it was unbacked, then making the guard here oblivious would be profitable.)
Stack from ghstack (oldest at bottom):
Fixes #119623
Signed-off-by: Edward Z. Yang ezyang@meta.com