mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
minor fix
This commit is contained in:
parent
bd053ca90a
commit
c3dc8f005b
@ -76,7 +76,7 @@ def save_checkpoint(
|
||||
|
||||
if isinstance(model, DDP):
|
||||
model = model.module
|
||||
|
||||
|
||||
checkpoint = {
|
||||
"model": model.state_dict(),
|
||||
"optimizer": optimizer.state_dict() if optimizer is not None else None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user