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
dca0bc27c5
commit
e9d5b46d53
Binary file not shown.
@ -106,6 +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)
|
||||
|
||||
|
||||
def add_rep_arguments(parser: argparse.ArgumentParser):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user