Replies: 1 comment
-
Sorry I don't fully get the question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a explainer algorithm. After initializing an edge_mask parameter, ie edge_mask = Parameter(torch.randn(5). If I want to perform some operations on it, including: edge_mask2 = edge_mask +10, edge_mask3 = F.dropout(edge_mask), edge_mask4 = F.dropout(edge_mask), then edge_mask , edge_mask2, edge_mask3, edge_mask4 will be used in the forward function of the explainer.
My issues is as follows:
In PyG's torch_geometric.explain.algorithm.utils. clear_masks, set_masks,
So, after calling clear_masks twice, will the gradient information of edge_mask be calculated correctly?
Beta Was this translation helpful? Give feedback.
All reactions