You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Return Attention Scores when return_attention_scores=True (#20684)
* Fix: Ensure Attention Layer Returns Attention Scores when `return_attention_scores=True`
This pull request addresses an issue in the Attention layer where the return_attention_scores parameter wasn't correctly handled in the compute_output_shape method. This fix ensures that attention scores are returned when return_attention_scores=True.
## Changes Made
Modified compute_output_shape method to return the shape of both the attention output and the attention scores when return_attention_scores=True.
* Formatting
* Fixed score return and added unit tests for return_attention_scores=True
* Removed debug print statement
0 commit comments