mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
fix comments
This commit is contained in:
parent
6864cd6ad8
commit
73927ab8e8
@ -375,7 +375,8 @@ class GigaSpeechAsrDataModule(DataModule):
|
|||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
# work horse for inexhuastible_train_dataloaders
|
# work horse for inexhuastible_train_dataloaders
|
||||||
while True:
|
while True:
|
||||||
# self.total_train_cuts / self.consumed_cuts should be contained by child class
|
# self.total_train_cuts == 0 for the first run
|
||||||
|
# self.consumed_cuts == self.total_train_cuts for recreating dataloader
|
||||||
if self.total_train_cuts == 0 and self.consumed_cuts == self.total_train_cuts:
|
if self.total_train_cuts == 0 and self.consumed_cuts == self.total_train_cuts:
|
||||||
self.train_dl = self.train_dataloaders()
|
self.train_dl = self.train_dataloaders()
|
||||||
self.consumed_cuts = 0
|
self.consumed_cuts = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user