KEMBAR78
[MPS] Fix index_select for scalar_types by malfet · Pull Request #161206 · pytorch/pytorch · GitHub
Skip to content

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Aug 21, 2025

Stack from ghstack (oldest at bottom):

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

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 21, 2025

🔗 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 Failures

As of commit 54baff4 with merge base cb57953 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Aug 21, 2025
malfet added a commit that referenced this pull request Aug 21, 2025
ghstack-source-id: 5048ded
Pull Request resolved: #161206
@malfet malfet added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 21, 2025
@malfet malfet requested review from dcci and manuelcandales August 21, 2025 21:28
[ghstack-poisoned]
malfet added a commit that referenced this pull request Aug 21, 2025
ghstack-source-id: 5fa469c
Pull Request resolved: #161206
@malfet malfet requested a review from Skylion007 August 22, 2025 14:12
@malfet malfet added the topic: bug fixes topic category label Aug 22, 2025
@malfet
Copy link
Contributor Author

malfet commented Aug 22, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Aug 22, 2025
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
pytorchmergebot pushed a commit that referenced this pull request Aug 23, 2025
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
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
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
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
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
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
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
@github-actions github-actions bot deleted the gh/malfet/498/head branch September 22, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: mps Release notes category topic: bug fixes topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants