mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 16:44:20 +00:00
fix train.py
This commit is contained in:
parent
d61c8aa3bc
commit
2f2934a115
@ -703,7 +703,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.diagonalize()
|
mmodel.diagonalize()
|
||||||
#optimizer.reset()
|
#optimizer.reset()
|
||||||
|
|
||||||
params.batch_idx_train += 1
|
params.batch_idx_train += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user