Skip to content

Commit

Permalink
Merge pull request #79 from BatsResearch/modularize_static_batching
Browse files Browse the repository at this point in the history
utils separation
  • Loading branch information
dotpyu authored Jul 8, 2024
2 parents 4b1db48 + c4974f6 commit 8abca96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alfred/fm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def static_batch(queries: Query, batch_size: int = 1024) -> List[List[Query]]:
batches = []
batch = []
for query in queries:
if len(batch) == batch_sz:
if len(batch) == batch_size:
batches.append(batch)
batch = []
if isinstance(query, CompletionQuery):
Expand Down

0 comments on commit 8abca96

Please sign in to comment.