mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
46ec2c8312
commit
ef3051f66e
Binary file not shown.
@ -460,6 +460,10 @@ def compute_validation_loss(
|
||||
tot_loss.reduce(loss.device)
|
||||
|
||||
loss_value = tot_loss["loss"] / tot_loss["frames"]
|
||||
|
||||
if loss.device == 0:
|
||||
wb.log({"valid/loss": loss_value)
|
||||
|
||||
if params.cur_epoch < 10:
|
||||
params.best_valid_losses[params.cur_epoch] = loss_value
|
||||
|
||||
@ -552,8 +556,6 @@ def train_one_epoch(
|
||||
)
|
||||
wb.log({"train/loss": tot_loss})
|
||||
|
||||
if batch_idx % params.log_interval == 0:
|
||||
|
||||
if tb_writer is not None:
|
||||
loss_info.write_summary(
|
||||
tb_writer, "train/current_", params.batch_idx_train
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user