-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[MPS] Disallow reshape in slice #95905
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/95905
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 41c716a: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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
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.
Please add the other 2 tests.
@pytorchbot merge -g |
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 |
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch#95883 Pull Request resolved: pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch#95883 Pull Request resolved: pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes #95883 Pull Request resolved: #95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth Co-authored-by: Denis Vieriu <dvieriu@apple.com>
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch/pytorch#95883 Pull Request resolved: pytorch/pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch/pytorch#95883 Pull Request resolved: pytorch/pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch#95883 Pull Request resolved: pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch#95883 Pull Request resolved: pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Disallow reshapes for arrayViews. Current code allows a base shape of `[2, 4, 256]` to be sliced into `[4, 1, 256]` (view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out. Fixes pytorch#95883 Pull Request resolved: pytorch#95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth Co-authored-by: Denis Vieriu <dvieriu@apple.com>
Disallow reshapes for arrayViews.
Current code allows a base shape of
[2, 4, 256]
to be sliced into[4, 1, 256]
(view's shape) - which is not possible. Slicing a smaller dimension into a bigger one will always error out.Fixes #95883