mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Don't compute validation if printing diagnostics.
This commit is contained in:
parent
bd325e8769
commit
314f2381e2
@ -858,7 +858,7 @@ def train_one_epoch(
|
||||
tb_writer, "train/tot_", params.batch_idx_train
|
||||
)
|
||||
|
||||
if batch_idx % params.valid_interval == 0:
|
||||
if batch_idx % params.valid_interval == 0 and not params.print_diagnostics:
|
||||
logging.info("Computing validation loss")
|
||||
valid_info = compute_validation_loss(
|
||||
params=params,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user