Commit 07ffcf09 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Account for cases when checkpoint gets deleted before it's evaluated.

parent de83fd72
Pipeline #23464 passed with stage
in 53 minutes and 16 seconds
......@@ -215,13 +215,17 @@ def eval(estimator, eval_input_fn, hooks, run_once, eval_interval_secs, name,
continue
# Evaluate
evaluations = estimator.evaluate(
input_fn=eval_input_fn,
steps=None,
hooks=hooks,
checkpoint_path=checkpoint_path,
name=name,
)
try:
evaluations = estimator.evaluate(
input_fn=eval_input_fn,
steps=None,
hooks=hooks,
checkpoint_path=checkpoint_path,
name=name,
)
# if the model gets deleted before we can evaluate it
except tf.errors.NotFoundError:
break
str_evaluations = append_evaluated_file(evaluated_file,
evaluations)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment