Skip to content
Discussion options

You must be logged in to vote

If you have no edges, then the output of message will be a tensor of shape [0, num_features]. After aggregation, you will obtain an zero-initialized tensor of shape [num_nodes, num_features]. As such, most implementations either add a self-loop to the graph or apply a simple skip-connection: out = self.propagate(...) + self.lin(x)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davidireland3
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