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
987c8a3911
commit
a6d4ce1256
Binary file not shown.
@ -453,6 +453,7 @@ def compute_validation_loss(
|
||||
if v == max(params.best_valid_losses.values()):
|
||||
remove_filename = params.exp_dir / f"best-valid-loss_{k}.pt"
|
||||
if loss.device == 0: os.remove(remove_filename)
|
||||
del params.best_valid_losses[k]
|
||||
params.best_valid_losses[params.cur_epoch] = loss_value
|
||||
|
||||
return tot_loss
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user