Skip to content
Discussion options

You must be logged in to vote

Yes, you sadly cannot use torch.nn.Sequential as part of a GNN pipeline. torch.nn.Sequential always expect two arguments (self and x), while GNN layers expect more (self, x and edge_index). As such, we have integrated our own Sequential implementation into PyG, see here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xyqbest
Comment options

Answer selected by xyqbest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants