I’m trying to save sparse tensor and then load them back. The save step executes without any problem but when I try to load it back I get a weird error
"RuntimeError: size is inconsistent with indices: for dim 1, size is 10 but found index 4934256341737799680"

Code to reproduce this error is given below:
ind = torch.LongTensor([[0]*4, [2, 4, 7, 9]])
val = torch.FloatTensor([5, 6, 6, 6])
sp_tensor = torch.sparse_coo_tensor(ind, val, torch.Size([1, 10]))
torch.save(sp_tensor, "test.pt")
sp_tensor = torch.load("test.pt")
print(sp_tensor)