Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
23662bb4
Unverified
Commit
23662bb4
authored
May 17, 2019
by
Ayush Dubey
Committed by
GitHub
May 17, 2019
Browse files
Do not return immediately after train_and_evaluate. (#6807)
parent
85b64893
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+1
-1
No files found.
official/resnet/resnet_run_loop.py
View file @
23662bb4
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment