-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
9f86132
commit 2ffd0b7
Showing
2 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters