-
I want to use residual units in my GCN net. However, I meet the argument number error.
line 153 is It means that Here is my GCN network:
Here is my residual unit:
How can I fix this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you sadly cannot use |
Beta Was this translation helpful? Give feedback.
Yes, you sadly cannot use
torch.nn.Sequential
as part of a GNN pipeline.torch.nn.Sequential
always expect two arguments (self
andx
), while GNN layers expect more (self
,x
andedge_index
). As such, we have integrated our ownSequential
implementation into PyG, see here.