Incorporating edge features in a custom message passing module #9130
Answered
by
rusty1s
Angelo92Git
asked this question in
Q&A
-
How do we incorporate edge attributes in a custom message passing module? The tutorial doesn't address this scenario. |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Apr 2, 2024
Replies: 1 comment
-
If you pass them to self.propagate(edge_index, x=x=, edge_attr=edge_attr)
def message(self, x_i, x_j, edge_attr):
return torch.cat([x_i, x_j, edge_attr], dim=-1) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Angelo92Git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you pass them to
propagate
, you can directly use them withinmessage
for example: