Compare commits

...

5 Commits

Author SHA1 Message Date
75b843f021 update test 2025-11-15 21:54:04 +04:00
da9f8c09dd Merge branch 'main' into mps-mm-out-sparse 2025-11-15 21:52:35 +04:00
358a595ec9 add op 2025-11-14 14:46:53 +04:00
29733ae12d add test 2025-11-14 13:47:47 +04:00
6bc2497de3 fix 2025-11-14 13:44:34 +04:00
2 changed files with 2 additions and 2 deletions

View File

@ -4225,7 +4225,7 @@
MTIA: mm_out_mtia
MPS: mm_out_mps
XPU: mm_out_xpu
SparseCPU, SparseCUDA: _sparse_mm_out
SparseCPU, SparseCUDA, SparseMPS: _sparse_mm_out
SparseCsrCPU, SparseCsrCUDA, SparseCsrMeta: _sparse_csr_mm_out
- func: mm.dtype(Tensor self, Tensor mat2, ScalarType out_dtype) -> Tensor

View File

@ -1391,9 +1391,9 @@ class TestSparse(TestSparseBase):
# case nnz > size[d]
run_test(tlen, tlen // 2)
@onlyCPU
@coalescedonoff
@dtypes(torch.double, torch.cdouble)
@dtypesIfMPS(torch.float32, torch.complex64)
def test_mm(self, device, dtype, coalesced):
def test_shape(di, dj, dk, nnz):
x, _, _ = self._gen_sparse(2, nnz, [di, dj], dtype, device, coalesced)