Commit bee6a471 authored by Vighnesh Birodkar's avatar Vighnesh Birodkar Committed by TF Object Detection Team
Browse files

Log errors when doing eval.

PiperOrigin-RevId: 362205649
parent 93da8e77
...@@ -896,7 +896,8 @@ def eager_eval_loop( ...@@ -896,7 +896,8 @@ def eager_eval_loop(
(losses_dict, prediction_dict, groundtruth_dict, (losses_dict, prediction_dict, groundtruth_dict,
eval_features) = strategy.run( eval_features) = strategy.run(
compute_eval_dict, args=(features, labels)) compute_eval_dict, args=(features, labels))
except: # pylint:disable=bare-except except Exception as exc: # pylint:disable=broad-except
tf.logging.info('Encountered %s exception.', exc)
tf.logging.info('A replica probably exhausted all examples. Skipping ' tf.logging.info('A replica probably exhausted all examples. Skipping '
'pending examples on other replicas.') 'pending examples on other replicas.')
break break
......
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