Closed XikunHuang closed 2 years ago
This is a bug in PyG which is now fixed, see https://github.com/pyg-team/pytorch_geometric/commit/af95df956f4473656f94d9ed04be0480534e397c.
Nonetheless, the DDI
dataset should set the num_nodes
attribute. This is now fixed inside OGB as well, see https://github.com/snap-stanford/ogb/pull/295.
Hi! I got an error when run python3 examples/linkproppred/ddi/gnn.py
Environments pytorch:
1.10.0
torch_geometric:2.0.3
It seems that pyg dataloader does not set 'num_nodes' as an attribute of 'data'. I notice that there is a file
dataset/ogbl_ddi/raw/num-node-list.csv.gz
which contains the number of nodes of ddi network. So I think pyg dataloader should set this attibute, right? Thanks!