Skip to content

[MPS] Improve index_fill_ error handling#165594

Closed
malfet wants to merge 2 commits intogh/malfet/561/basefrom
gh/malfet/561/head
Closed

[MPS] Improve index_fill_ error handling#165594
malfet wants to merge 2 commits intogh/malfet/561/basefrom
gh/malfet/561/head

Conversation

@malfet
Copy link
Contributor

@malfet malfet commented Oct 15, 2025

Stack from ghstack (oldest at bottom):

It shoudl not throw "Cannot convert a float64 Tensor to MPS", but rather a sensible "Converting complex Scalar to non-complex type is not supported".
Add TODO about the complex support, probably good reason to rip out MPSGraph from index_fill as well

[ghstack-poisoned]
@malfet malfet requested a review from kulinseth as a code owner October 15, 2025 23:40
malfet added a commit that referenced this pull request Oct 15, 2025
It shoudl not throw "Cannot convert a float64 Tensor to MPS", but rather a sensible "Converting complex Scalar to non-complex type is not supported"

ghstack-source-id: c2a7f65
Pull Request resolved: #165594
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/165594

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 25 Pending

As of commit 3e7e452 with merge base 84d141e (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 Oct 15, 2025
@malfet malfet requested review from Skylion007 and dcci October 15, 2025 23:44
@malfet malfet added the topic: bug fixes topic category label Oct 15, 2025
[ghstack-poisoned]
@malfet
Copy link
Contributor Author

malfet commented Oct 16, 2025

@pytorchbot merge -f "Lint + MPS were green"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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 Oct 16, 2025
Replace `if (!foo) { TORCH_CHECK(false, "bar");}` with `TORCH_CHECK(foo,"bar");`
Pull Request resolved: #165593
Approved by: https://github.com/albanD
ghstack dependencies: #165594
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
It shoudl not throw "Cannot convert a float64 Tensor to MPS", but rather a sensible "Converting complex Scalar to non-complex type is not supported".
Add TODO about the complex support, probably good reason to rip out MPSGraph from index_fill as well
Pull Request resolved: pytorch#165594
Approved by: https://github.com/dcci, https://github.com/kulinseth
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Replace `if (!foo) { TORCH_CHECK(false, "bar");}` with `TORCH_CHECK(foo,"bar");`
Pull Request resolved: pytorch#165593
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#165594
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
It shoudl not throw "Cannot convert a float64 Tensor to MPS", but rather a sensible "Converting complex Scalar to non-complex type is not supported".
Add TODO about the complex support, probably good reason to rip out MPSGraph from index_fill as well
Pull Request resolved: pytorch#165594
Approved by: https://github.com/dcci, https://github.com/kulinseth
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
Replace `if (!foo) { TORCH_CHECK(false, "bar");}` with `TORCH_CHECK(foo,"bar");`
Pull Request resolved: pytorch#165593
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#165594
@github-actions github-actions bot deleted the gh/malfet/561/head branch November 16, 2025 02:22
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) 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.

4 participants