Skip to content

Commit

Permalink
bugfix: _batch_generator needs to always yield
Browse files Browse the repository at this point in the history
  • Loading branch information
amihalik authored Mar 10, 2024
1 parent 1af3d71 commit d8b816e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msclap/CLAPWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _generic_batch_inference(self, func, *args):
# batch size is bigger than available audio/text items
if next_batch_idx >= args0_len:
inputs[0] = input_tmp[dataset_idx:]
return func(*tuple(inputs))
yield func(*tuple(inputs))
else:
inputs[0] = input_tmp[dataset_idx:next_batch_idx]
yield func(*tuple(inputs))
Expand Down

0 comments on commit d8b816e

Please sign in to comment.