Skip to content

test_ind2ptr fails after torch.Tensor.tolist was updated to error out when called on tensors with null storage #221

@anjali411

Description

@anjali411

Looks like

row = torch.ops.torch_sparse.ptr2ind(rowptr, 0)
assert row.tolist() == []
started failing after pytorch/pytorch#75990 landed

        row = torch.ops.torch_sparse.ptr2ind(rowptr, 0)
>       assert row.tolist() == []
E       RuntimeError: tolist() shouldn't be called on a tensor with unallocated storage

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions