-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] Fix index_select for scalar_types #161206
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/161206
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 54baff4 with merge base cb57953 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@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 |
By `squeezing the input` when copying into scalar tensor from a 1d one And enable `test_index_copy_scalars_mps` Fixes #160737 Pull Request resolved: #161267 Approved by: https://github.com/manuelcandales, https://github.com/Skylion007, https://github.com/dcci ghstack dependencies: #161206
By passing strides to strided variant of the tensor Fixes #160993 Pull Request resolved: #161333 Approved by: https://github.com/huydhn, https://github.com/wdvr ghstack dependencies: #161206, #161267
By copy-n-pasting logic from `index_select_out_cpu` (and `_cuda`), where essentially the resizing is done inside the op, which also fixes faulty logic for scalars Pull Request resolved: pytorch#161206 Approved by: https://github.com/manuelcandales
By `squeezing the input` when copying into scalar tensor from a 1d one And enable `test_index_copy_scalars_mps` Fixes pytorch#160737 Pull Request resolved: pytorch#161267 Approved by: https://github.com/manuelcandales, https://github.com/Skylion007, https://github.com/dcci ghstack dependencies: pytorch#161206
By passing strides to strided variant of the tensor Fixes pytorch#160993 Pull Request resolved: pytorch#161333 Approved by: https://github.com/huydhn, https://github.com/wdvr ghstack dependencies: pytorch#161206, pytorch#161267
Stack from ghstack (oldest at bottom):
index_copyfor scalars #161267By copy-n-pasting logic from
index_select_out_cpu(and_cuda), where essentially the resizing is done inside the op, which also fixes faulty logic for scalars