Skip to content

Commit

Permalink
Merge branch 'chore/mypy-max-len-time-axis' into chore/new-gh-runners
Browse files Browse the repository at this point in the history
  • Loading branch information
callumtilbury committed Jul 26, 2024
2 parents 28a482c + 0ee266f commit 24c666b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions flashbax/buffers/prioritised_trajectory_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ def make_prioritised_trajectory_buffer(
if max_size is not None:
max_length_time_axis = max_size // add_batch_size

assert max_length_time_axis is not None
init_fn = functools.partial(
prioritised_init,
add_batch_size=add_batch_size,
Expand Down
1 change: 1 addition & 0 deletions flashbax/buffers/trajectory_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ def make_trajectory_buffer(
if max_size is not None:
max_length_time_axis = max_size // add_batch_size

assert max_length_time_axis is not None
init_fn = functools.partial(
init,
add_batch_size=add_batch_size,
Expand Down

0 comments on commit 24c666b

Please sign in to comment.