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