-
I'm attempting to use GINConv for heterogeneous graph prediction. I have set up an initial network like so:
I load a HeteroData batch and feed it into the network. Here's the error I see:
Notably, 12 and 3 are the number of node features for node type 1 and node type 2, respectively. The error does not occur if I change the GNN operator for ('type1', 'contains', 'type2'): to GATConv((-1, -1), hidden_channels, add_self_loops=False) Could anyone give guidance as to why this error happens and how to fix it? EDIT: This also happens when using an out-of-the-box GIN model, like so:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Beta Was this translation helpful? Give feedback.
GINConv
cannot handle different feature dimensionalities across source and destination nodes. As such, you might want to consider to first project node features of all node types into the same space.