"...git@developer.sourcefind.cn:modelzoo/gpt2-pytorch.git" did not exist on "c19b4a9329fce829bb3693f1e27999e997395fea"
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(
(losses_dict, prediction_dict, groundtruth_dict,
eval_features) = strategy.run(
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 '
'pending examples on other replicas.')
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