-
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
Added return_semantic_attention_weights
parameter to HANConv
#5787
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5787 +/- ##
==========================================
- Coverage 83.97% 83.96% -0.02%
==========================================
Files 349 349
Lines 19422 19428 +6
==========================================
+ Hits 16309 16312 +3
- Misses 3113 3116 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
return_semantic_attention_weights
parameter to HANConv
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
…-team#5787) Added return_semantic_attention_weights parameter to forward method of HANConv, in the same way GATConv returns its attention_weights. return_semantic_attention_weights (bool, optional): If set to :obj:`True`, will additionally return the tensor :obj:`semantic_attention_weights`, holding the computed attention weights for each edge type at semantic-level attention. (default: :obj:`None`). Further work could be dedicated to return also node-level attention weights as dictionary of (edge_type, attention_weights) items. Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
Does the return of conv.HANConv in torch_geometric contain the 2 parts tasks which are node-level attention and semantic-level attention in the paper? |
Added return_semantic_attention_weights parameter to forward method of HANConv, in the same way GATConv returns its attention_weights.
return_semantic_attention_weights (bool, optional): If set to :obj:
True
, will additionally return the tensor :obj:semantic_attention_weights
, holding the computed attention weights for each edge type at semantic-level attention. (default: :obj:None
).Further work could be dedicated to return also node-level attention weights as dictionary of (edge_type, attention_weights) items.