Commit 04da17c7 authored by rusty1s's avatar rusty1s
Browse files

fix tests

parent e82eae1e
......@@ -9,5 +9,5 @@ from .utils import devices
def test_metis(device):
mat = SparseTensor.from_dense(torch.randn((6, 6), device=device))
mat, partptr, perm = mat.partition_kway(num_parts=2)
assert partptr.tolist() == [0, 3, 6]
assert perm.tolist() == [0, 1, 2, 3, 4, 5]
assert partptr.numel() == 3
assert perm.nume() == 6
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment