mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[MPS] Add mps keys to indices and values ops (#160223)
enable indices and values on sparse mps Pull Request resolved: https://github.com/pytorch/pytorch/pull/160223 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
16d15445f8
commit
2e4e5ab4be
@@ -7462,7 +7462,7 @@
|
||||
- func: indices(Tensor(a) self) -> Tensor(a)
|
||||
variants: method
|
||||
dispatch:
|
||||
SparseCPU, SparseCUDA, SparseMeta: indices_sparse
|
||||
SparseCPU, SparseCUDA, SparseMPS, SparseMeta: indices_sparse
|
||||
CompositeExplicitAutograd: indices_default
|
||||
device_check: NoCheck
|
||||
device_guard: False
|
||||
@@ -7470,7 +7470,7 @@
|
||||
- func: values(Tensor(a) self) -> Tensor(a)
|
||||
variants: method
|
||||
dispatch:
|
||||
SparseCPU, SparseCUDA, SparseMeta: values_sparse
|
||||
SparseCPU, SparseCUDA, SparseMPS, SparseMeta: values_sparse
|
||||
SparseCsrCPU, SparseCsrCUDA, SparseCsrMeta: values_sparse_csr
|
||||
NestedTensorCPU, NestedTensorHPU, NestedTensorCUDA: values_nested
|
||||
CompositeExplicitAutograd: values_default
|
||||
|
||||
Reference in New Issue
Block a user