Issue with GNNExplainer and TransformerConv Layer in PyTorch Geometric #9444
-
Hi Everyone! I'm using the GNNExplainer from the torch_geometric.explain module to interpret the nodes in a GNN model that includes several 'TransformerConv' layers. However, I'm encountering an issue with the following error: AttributeError: type object 'TransformerConv' has no attribute '_orig_propagate'. When I switched the 'TransformerConv' to a 'GCNConv' layer, the error disappeared, so I'm assuming my code is actually correct. Here are the details of the error. I would greatly appreciate any assistance! Best regards,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I see some similar regressions in recent versions of PyG, e.g., #9035 and #9092 (and I see your comment there, too). Can you try the latest release 2.5.3 (and also try master if 2.5.3 doesn't work)? The installation guide is here: https://github.com/pyg-team/pytorch_geometric/?tab=readme-ov-file#nightly-and-master Would be very nice if you could provide us with your script to reproduce this. |
Beta Was this translation helpful? Give feedback.
-
Added a test for this: #9451 Otherwise, I agree with @akihironitta. Can you make sure you are on latest 2.5.3 version? |
Beta Was this translation helpful? Give feedback.
I see some similar regressions in recent versions of PyG, e.g., #9035 and #9092 (and I see your comment there, too).
Can you try the latest release 2.5.3 (and also try master if 2.5.3 doesn't work)? The installation guide is here: https://github.com/pyg-team/pytorch_geometric/?tab=readme-ov-file#nightly-and-master
Would be very nice if you could provide us with your script to reproduce this.