(A, B)
| 385 | @pytest.mark.parametrize("shape", [(3, 5), (5, 5)]) |
| 386 | def test_val_like(val_shape, shape): |
| 387 | def check_val_like(A, B): |
| 388 | assert A.shape == B.shape |
| 389 | assert A.nnz == B.nnz |
| 390 | assert torch.allclose(torch.stack(A.coo()), torch.stack(B.coo())) |
| 391 | assert A.val.device == B.val.device |
| 392 | |
| 393 | ctx = F.ctx() |
| 394 |