mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
a72838f902
commit
f3da6d8c95
Binary file not shown.
@ -106,7 +106,7 @@ def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
|
||||
for module in model.modules():
|
||||
if hasattr(module, "batch_count"):
|
||||
module.batch_count = batch_count
|
||||
model.module.encoder.num_updates = int(batch_count)
|
||||
model.encoder.num_updates = int(batch_count)
|
||||
|
||||
|
||||
def add_rep_arguments(parser: argparse.ArgumentParser):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user