Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wenet/dataset/datapipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def __iter__(self):
weights[i] = 0.
exhausted[i] = True
if all(exhausted):
self.iters = None
return
weights = [weight / sum(weights) for weight in weights]

Expand Down
Loading