mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
Remove optimizer.reset() which is not supported for Eve
This commit is contained in:
parent
d58debdb3f
commit
9859e33c06
@ -704,7 +704,7 @@ def train_one_epoch(
|
|||||||
if params.batch_idx_train % 2000 == 0 and params.batch_idx_train > 0:
|
if params.batch_idx_train % 2000 == 0 and params.batch_idx_train > 0:
|
||||||
mmodel = model.module if hasattr(model, 'module') else model
|
mmodel = model.module if hasattr(model, 'module') else model
|
||||||
mmodel.encoder.orthogonalize()
|
mmodel.encoder.orthogonalize()
|
||||||
optimizer.reset()
|
#optimizer.reset()
|
||||||
|
|
||||||
params.batch_idx_train += 1
|
params.batch_idx_train += 1
|
||||||
batch_size = len(batch["supervisions"]["text"])
|
batch_size = len(batch["supervisions"]["text"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user