Skip to content

Commit

Permalink
Remove mask = None (#2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
abheesht17 authored Feb 3, 2025
1 parent e625699 commit 6adc92f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions keras_hub/src/models/pali_gemma/pali_gemma_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ def __init__(
self.intermediate_dim = intermediate_dim

def compute_attention(self, x, mask=None):
mask = None
if mask is not None:
mask = ops.cast(mask, dtype=x.dtype) if mask is not None else None
mask = ops.cast(mask, dtype=x.dtype)
return self.attn(x, attention_mask=mask)[0]

def build(self, input_shape):
Expand Down

0 comments on commit 6adc92f

Please sign in to comment.