GATConv error: AssertionError assert self.lin_edge is not None #4606
-
Currently I'm using GATConv with edge_attr, but I got the error above.
I've test the shape of x, edge_index and edge_attr, and their shape is the same as the comment in code. And I've try to find what self.lin_edge means in source code, but I didn't find any information about this, how can I solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please note that you need to specify the |
Beta Was this translation helpful? Give feedback.
-
@rusty1s how do you calculate the edge_dim? For heterogeneous graph neural network each edge type has it's own edge_dim since edge_dim = number of features? |
Beta Was this translation helpful? Give feedback.
Please note that you need to specify the
edge_dim
attribute inGATConv
if you want to use it in combination withedge_attr
.