-
How to set edge_index parameter in torch_geometric.data.Data if all nodes are independent (not connected with any other nodes)? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Oct 14, 2021
Replies: 1 comment
-
You can create an empty Tensor of shape edge_index = torch.tensor([[], []], dtype=torch.long) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thu1911
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create an empty Tensor of shape
[2, 0]
: