-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explainer Model is incompatible with FiLMConv Layer #5658
Comments
also happens in the most up to date version in pip, |
So, the lines in question are:
When I check this, |
I think I see where this error is coming from. My
where the |
I have tried overriding the
This runs fine, but the result edge attributions are nonsense. When visualizing it with |
Really sorry for the late reply, but I appreciate your detailed description. You are right that I think the cleanest approach to fix this though would be to get rid of the of the for-loop altogether. This should be doable by the usage of |
🐛 Describe the bug
Hi!
I use the Explainer that integrates Captum as described in the example as follows:
edge_index
is a SparseTensor that also contains the information about the edge types (since FiLMConv is for multigraphs).However, this raises an error because the edge mask is 2-dimensional:
if I remove the
.unsqueeze(0)
from the edge mask to get the requested dimension I get an Error from the explainer class:The whole thing works with TAGConv and GCNConv layer, so I expect that the culprit is the FiLMConv layer. I will try hacking the layer implementation to see if I can conditionally squeeze the mask.
Environment
conda
,pip
, source): piptorch-scatter
):The text was updated successfully, but these errors were encountered: