mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 17:42:21 +00:00
Update finetune.py (#1304)
This commit is contained in:
parent
2b3c5d799f
commit
855492156a
@ -734,7 +734,7 @@ def train_one_epoch(
|
|||||||
scaler.update()
|
scaler.update()
|
||||||
optimizer.zero_grad()
|
optimizer.zero_grad()
|
||||||
except: # noqa
|
except: # noqa
|
||||||
display_and_save_batch(batch, params=params)
|
display_and_save_batch(batch, params=params, graph_compiler=graph_compiler)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
if params.print_diagnostics and batch_idx == 5:
|
if params.print_diagnostics and batch_idx == 5:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user