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
6b201624b9
commit
f5ed700ada
Binary file not shown.
Binary file not shown.
@ -1027,7 +1027,6 @@ def train_one_epoch(
|
||||
scheduler_enc, scheduler_dec = scheduler[0], scheduler[1]
|
||||
|
||||
for batch_idx, batch in enumerate(train_dl):
|
||||
logging.info(f"update num : {params.batch_idx_train}")
|
||||
if params.batch_idx_train > params.num_updates:
|
||||
break
|
||||
if batch_idx < cur_batch_idx:
|
||||
@ -1631,6 +1630,7 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
scaler = GradScaler(enabled=params.use_fp16, init_scale=1.0)
|
||||
|
||||
for epoch in range(params.start_epoch, params.num_epochs + 1):
|
||||
logging.info(f"update num : {params.batch_idx_train}")
|
||||
scheduler.step_epoch(epoch - 1)
|
||||
fix_random_seed(params.seed + epoch - 1)
|
||||
train_dl.sampler.set_epoch(epoch - 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user