Skip to content

Commit ef300c8

Browse files
IvyZXlearned_optimization authors
authored andcommitted
Internal change
PiperOrigin-RevId: 489912440
1 parent c7de02e commit ef300c8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

learned_optimization/continuous_eval/run_eval_chief.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ def monitor_checkpoint_dir(
105105
# Save or restore the state of this function -- namely the last checkpoint
106106
# we have seen.
107107
initial_step = jnp.asarray(0)
108-
step = checkpoints.restore_checkpoint(
109-
log_dir, initial_step, prefix="evaluation_on_checkpoint_")
108+
try:
109+
step = checkpoints.restore_checkpoint(
110+
log_dir, initial_step, prefix="evaluation_on_checkpoint_")
111+
except ValueError:
112+
step = initial_step
110113

111114
while True:
112115
with profile.Profile("waiting"):

0 commit comments

Comments
 (0)