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
a6dcaff260
commit
bdc439c678
Binary file not shown.
@ -475,6 +475,7 @@ def compute_validation_loss(
|
||||
for k, v in params.best_valid_losses.items():
|
||||
if v == max(params.best_valid_losses.values()):
|
||||
remove_epoch = k
|
||||
break
|
||||
|
||||
remove_filename = params.exp_dir / f"best-valid-loss_{remove_epoch}.pt"
|
||||
try: os.remove(remove_filename)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user