Skip to content

Commit cf8aedf

Browse files
authored
incorrect condition on self.sliding_window_size (#2289)
1 parent 625f510 commit cf8aedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras_hub/src/models/qwen3/qwen3_attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def _compute_attention(
299299
attention_scores,
300300
ops.cast(self._inv_norm_factor, self.compute_dtype),
301301
)
302-
if not self.sliding_window_size:
302+
if self.sliding_window_size:
303303
attention_mask = self._mask_sliding_window(
304304
attention_mask,
305305
cache_update_index=cache_update_index

0 commit comments

Comments
 (0)