mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Fix bug
This commit is contained in:
parent
f587cd527d
commit
0f8ee68af2
@ -784,6 +784,7 @@ def run(rank, world_size, args):
|
|||||||
|
|
||||||
# The `epoch` variable in the lambda expression binds to the value below
|
# The `epoch` variable in the lambda expression binds to the value below
|
||||||
# in `for epoch in range(params.start_epoch, params.num_epochs):`.
|
# in `for epoch in range(params.start_epoch, params.num_epochs):`.
|
||||||
|
epoch = 0
|
||||||
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
||||||
optimizer,
|
optimizer,
|
||||||
lambda step: (((step + params.lr_begin_steps) / params.lr_begin_steps) ** -0.5 *
|
lambda step: (((step + params.lr_begin_steps) / params.lr_begin_steps) ** -0.5 *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user