Skip to content

Commit

Permalink
Update flashbax/buffers/item_buffer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Callum Tilbury <37700709+callumtilbury@users.noreply.github.com>
  • Loading branch information
EdanToledo and callumtilbury authored Dec 14, 2023
1 parent 3b6fd7b commit 4d1f055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashbax/buffers/item_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def validate_sample_batch_size(sample_batch_size: int, max_length: int):

def validate_min_length(min_length: int, max_length: int):
if min_length > max_length:
raise ValueError("min_length used is too large for the buffer size.")
raise ValueError("min_length used cannot be larger than max_length.")


def validate_item_buffer_args(
Expand Down

0 comments on commit 4d1f055

Please sign in to comment.