-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] coalesce for sparse tensors #159729
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/159729
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 26 PendingAs of commit 639b30b with merge base 40c4d61 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Attention! native_functions.yaml was changedIf you are adding a new function or defaulted argument to native_functions.yaml, you cannot use it from pre-existing Python frontend code until our FC window passes (two weeks). Split your PR into two PRs, one which adds the new C++ functionality, and one that makes use of it from Python, and land them two weeks apart. See https://github.com/pytorch/pytorch/wiki/PyTorch's-Python-Frontend-Backward-and-Forward-Compatibility-Policy#forwards-compatibility-fc for more info. Caused by: |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Rebase failed due to Command Raised by https://github.com/pytorch/pytorch/actions/runs/16789659717 |
| sparse_cpu = sparse_cpu.sparse_resize_(torch.Size([4, 5]), sparse_dim=2, dense_dim=0) | ||
| self.assertEqual(sparse, sparse_cpu) | ||
|
|
||
| def test_coalesce(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just enable portions of test_sparse? I.e. why it needs to be a separate MPS test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the long term goal, now if I enable tests in test_sparse.py most of the ops will just fail and we'd have to add to skip MPS almost everywhere. Once we cover most of the sparse functionality then we can delete this and just enable sparse tests
|
@pytorchbot merge -f "It was green before" |
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 the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
MPS coalesce function for sparse tensors Pull Request resolved: pytorch#159729 Approved by: https://github.com/malfet Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
MPS coalesce function for sparse tensors Pull Request resolved: pytorch#159729 Approved by: https://github.com/malfet Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
MPS coalesce function for sparse tensors
cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen