mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix an error in TDNN-LSTM training.
This commit is contained in:
parent
398ed80d7a
commit
c9222bdb09
@ -501,6 +501,7 @@ def run(rank, world_size, args):
|
|||||||
)
|
)
|
||||||
scheduler = StepLR(optimizer, step_size=8, gamma=0.1)
|
scheduler = StepLR(optimizer, step_size=8, gamma=0.1)
|
||||||
|
|
||||||
|
if checkpoints:
|
||||||
optimizer.load_state_dict(checkpoints["optimizer"])
|
optimizer.load_state_dict(checkpoints["optimizer"])
|
||||||
scheduler.load_state_dict(checkpoints["scheduler"])
|
scheduler.load_state_dict(checkpoints["scheduler"])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user