pytorch
304a9543 - [MPS] Disallow reshape in slice (#95905)

Commit
2 years ago
[MPS] Disallow reshape in slice (#95905) 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 https://github.com/pytorch/pytorch/issues/95883 Pull Request resolved: https://github.com/pytorch/pytorch/pull/95905 Approved by: https://github.com/razarmehr, https://github.com/kulinseth
Author
Committer
Parents
Loading