Skip to content
Discussion options

You must be logged in to vote

You need to make use of permutation-invariant pooling operators to go from node-level features/scalars to graph-level ones, e.g., via torch_geometric.nn.global_mean_pool:

x = self.lin1(x)
x = global_mean_pool(x, cluster_index)
x = self.lin2(x)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by diamondspark
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