-
Hi! Im trying to use The dataset Im working with doesn't have edge_attr, is there a way to use this without edge_attr? Any ideas are appreciated! Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
No, edge_attr = torch.cat([x[edge_index[0]], x[edge_index[1]], dim=-1) |
Beta Was this translation helpful? Give feedback.
No,
NNConv
is defined to operate on edge features, and so edge features will be required to run this operator. As a workaround, you could think of creating edge features on the fly, e.g., by concatenating source and destination node features: