Closed john012343210 closed 3 years ago
It seems the versions of numpy, pytorch or pytorch_geometric are different to me.
This error means, the type of the edge_index (edge_index.type()) should be torch.LongTensor, and the dtype of the edge_index (edge_index.dtype) should be torch.int64.
You can explicitly fix this error, by replacing Line 146-148 of utils.py as follows: src = torch.tensor(src, dtype=torch.long) rel = torch.tensor(rel, dtype=torch.long) dst = torch.tensor(dst, dtype=torch.long)
Best wishes, Jinheon Baek