Skip to content

Commit

Permalink
Fix return_attention_scores bug (#1977)
Browse files Browse the repository at this point in the history
* Fix `return_attention_scores` bug

* Keep the if...else block
  • Loading branch information
abheesht17 authored Nov 11, 2024
1 parent 76a6ca0 commit d97db05
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion keras_hub/src/layers/modeling/transformer_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def call(
return_attention_scores=return_attention_scores,
training=training,
)
return x, attention_scores
else:
x = self._self_attention_layer(
query=x,
Expand Down

0 comments on commit d97db05

Please sign in to comment.