Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Nov 9, 2023
1 parent 46127f4 commit a1a3228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion returnn/tf/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ def _maybe_use_better_last_model(self):
opts = self.config.get_of_type("use_last_best_model", dict, default={}).copy()
if self.epoch % opts.pop("modulo", 1) != 0:
# Normally we would filter those out. One maybe sensible exception is if the last score was really bad.
if (self.learning_rate_control.get_epoch_error_value(self.epoch - 1, must_exist=False) or 0) <= opts.get(
if (self.learning_rate_control.get_epoch_error_value(self.epoch - 1) or 0) <= opts.get(
"filter_score", float("inf")
):
return
Expand Down

0 comments on commit a1a3228

Please sign in to comment.