Skip to content

Commit

Permalink
fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarciae committed Jul 19, 2023
1 parent 50f492b commit 68b334e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flax/linen/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ def scan_fn(
# return_carry is True we slice the carry history and select the last valid
# carry for each sequence. Otherwise we just use the last carry.
if slice_carry:
assert seq_lengths is not None
_, (carries, outputs) = scan_output
# seq_lengths[None] expands the shape of the mask to match the
# number of dimensions of the carry.
Expand Down

0 comments on commit 68b334e

Please sign in to comment.