Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainysponge committed Oct 30, 2023
1 parent b133688 commit 7308573
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def __call__(
self.make_rng('fcm'),
shape=(batch_size, 1, 1, 1),
minval=self.config.fcm_min_ratio,
maxval=self.config.fcm_max_ratio
maxval=self.config.fcm_max_ratio,
)
fcm_mask = (
jax.random.uniform(
Expand Down Expand Up @@ -1902,7 +1902,7 @@ def __call__(
if position_ids is None:
position_ids = jnp.broadcast_to(
jnp.clip(jnp.cumsum(attention_mask, axis=-1) - 1, a_min=0),
(batch_size, seq_length)
(batch_size, seq_length),
)
else:
assert attention_mask is not None
Expand Down Expand Up @@ -2292,7 +2292,7 @@ def get_special_tokens_mask(
self,
token_ids_0: List[int],
token_ids_1: Optional[List[int]] = None,
already_has_special_tokens: bool = False
already_has_special_tokens: bool = False,
) -> List[int]:
"""
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding
Expand Down

0 comments on commit 7308573

Please sign in to comment.