mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Fix an error in DDP training.
This commit is contained in:
parent
8055bf31a0
commit
78bb65ed78
@ -214,6 +214,8 @@ def save_checkpoint(
|
||||
model:
|
||||
The training model.
|
||||
"""
|
||||
if rank != 0:
|
||||
return
|
||||
filename = params.exp_dir / f"epoch-{params.cur_epoch}.pt"
|
||||
save_checkpoint_impl(
|
||||
filename=filename,
|
||||
|
Loading…
x
Reference in New Issue
Block a user