"...git@developer.sourcefind.cn:modelzoo/sam2_pytorch.git" did not exist on "3af09475e690c3ab8b5678c05e8e8939ac2c27fd"
Unverified Commit 23662bb4 authored by Ayush Dubey's avatar Ayush Dubey Committed by GitHub
Browse files

Do not return immediately after train_and_evaluate. (#6807)

parent 85b64893
...@@ -654,7 +654,7 @@ def resnet_main( ...@@ -654,7 +654,7 @@ def resnet_main(
tf.estimator.train_and_evaluate(classifier, train_spec, eval_spec) tf.estimator.train_and_evaluate(classifier, train_spec, eval_spec)
# tf.estimator.train_and_evalute doesn't return anything in multi-worker # tf.estimator.train_and_evalute doesn't return anything in multi-worker
# case. # case.
return {} eval_results = {}
else: else:
if train_epochs == 0: if train_epochs == 0:
# If --eval_only is set, perform a single loop with zero train epochs. # If --eval_only is set, perform a single loop with zero train epochs.
......
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