-
I'm new to pytorch_geometric explain module. I found def explain_message(in message_passing.py) multiplies self._edge_mask and the out after message propagating. And edge_weight seems like dealing with the same way(eg. def message in gcn_conv.py). What's the diffrence between them? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! Also, Hope that helps! |
Beta Was this translation helpful? Give feedback.
Hi there!$\hat{d}_i = 1 + \sum_{j \in \mathcal{N}(i)} e_{j,i}$ in GCNConv. However, the edge weight does affect it.
The
edge_mask
inexpain_message
doesn't change the calculation of the node degreeAlso,
edge_mask
can be used on all massage passing neural networks. While only a few MPNNs accept edge_weight as input.Hope that helps!