mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-07 16:14:17 +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:
|
||||
mmodel = model.module if hasattr(model, 'module') else model
|
||||
mmodel.encoder.orthogonalize()
|
||||
optimizer.reset()
|
||||
#optimizer.reset()
|
||||
|
||||
params.batch_idx_train += 1
|
||||
batch_size = len(batch["supervisions"]["text"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user