- Notifications
You must be signed in to change notification settings - Fork26.3k
[MPS] Fix unary/binary ops for 2**32+ elem tensors#155183
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pytorch-botbot commentedJun 5, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🔗 Helpful Links🧪 See artifacts and rendered test results athud.pytorch.org/pr/155183
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 Cancelled Jobs, 2 PendingAs of commit80f5d62 with merge base31d12b3 ( CANCELLED JOBS - The following jobs were cancelled. Please retry:This comment was automatically generated by Dr. CI and updates every 15 minutes. |
By using `TensorIterator..with_32bit_indexing()` primitiveAdd `bind_tensors` helper function that correctly sets up MPS tensors originating from TensorIteratorTODO: Add unit test, based on```python -c "import torch;print((torch.rand(1, 1024, 1024, dtype=torch.bfloat16, device='mps') + torch.rand(5000, 1, 1, dtype=torch.bfloat16, device='mps')).sin())"```ghstack-source-id:dd9ed1bPull Requestresolved:#155183
malfet commentedJun 5, 2025
@pytorchbot merge -f "Lint + MPS are green" |
pytorchmergebot commentedJun 5, 2025
Merge startedYour change will be merged immediately since you used the force (-f) flag,bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
Uh oh!
There was an error while loading.Please reload this page.
Stack fromghstack (oldest at bottom):
By using
TensorIterator::with_32bit_indexing()primitiveAdd
bind_tensorshelper function that correctly sets up MPS tensors originating from TensorIteratorTODO: Add comments to bind_tensors as well asunit test, based on
Fixes#154828