from local

This commit is contained in:
dohe0342 2022-12-10 15:04:12 +09:00
parent dca0bc27c5
commit e9d5b46d53
2 changed files with 1 additions and 0 deletions

View File

@ -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):