Skip to content

Commit

Permalink
fix bucketing bug issue for picking new bucket (#6663)
Browse files Browse the repository at this point in the history
Signed-off-by: Nithin Rao Koluguri <nithinraok>
Co-authored-by: Nithin Rao Koluguri <nithinraok>
  • Loading branch information
nithinraok committed May 17, 2023
1 parent e9fcc41 commit 78fe893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nemo/collections/asr/data/audio_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,7 @@ def __next__(self):
try:
sample = next(self.wrapped_iter)
except StopIteration:
self.wrapped_iter = iter(self.wrapped_ds)
sample = next(self.wrapped_iter)
break
batches.append(sample)
if len(batches) == 0:
raise StopIteration
Expand Down

0 comments on commit 78fe893

Please sign in to comment.