mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Fix bug in lambda
This commit is contained in:
parent
ed8eba91e1
commit
d1a669162c
@ -784,7 +784,7 @@ def run(rank, world_size, args):
|
|||||||
eps=1e-9, weight_decay=3e-04, target_rms=0.1)
|
eps=1e-9, weight_decay=3e-04, target_rms=0.1)
|
||||||
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
||||||
optimizer,
|
optimizer,
|
||||||
lambda step: (params.lr_num_steps/(step + params.lr_num_steps) ** params.lr_power))
|
lambda step: ((params.lr_num_steps/(step + params.lr_num_steps)) ** params.lr_power))
|
||||||
|
|
||||||
|
|
||||||
if checkpoints and "optimizer" in checkpoints:
|
if checkpoints and "optimizer" in checkpoints:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user