Skip to content

Expose Attention Weights from MultiHeadDotProductAttention #3496

Closed Answered by chiamp
Xiaoming-Zhao asked this question in General
Discussion options

You must be logged in to vote

This feature has been added in #3529. Pass return_weights=True to MultiHeadDotProductAttention's __call__ method to sow the attention weights into the intermediates collection.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xiaoming-Zhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants