Skip to content

Separate train an eval for estimator #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: resnet_perf_tweaks
Choose a base branch
from

Conversation

seemuch
Copy link
Collaborator

@seemuch seemuch commented Nov 7, 2018

...by changing the flag "eval_only" to "skip_eval". It is still possible to do eval only, by setting the training epoch to 0, and skip eval to false.
This way, it is possible to do both training only and evaluation only.

@seemuch seemuch requested a review from anj-s November 7, 2018 20:11
name='eval_only', default=False,
help=flags_core.help_wrap('Skip training and only perform evaluation on '
'the latest checkpoint.'))
name='skip_eval', default=False,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add 'skip_eval' instead of modifying an existing flag?

@@ -523,8 +523,8 @@ def input_fn_eval():
num_epochs=1,
dtype=flags_core.get_tf_dtype(flags_obj))

if flags_obj.eval_only or not flags_obj.train_epochs:
# If --eval_only is set, perform a single loop with zero train epochs.
if not flags_obj.train_epochs:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is this true given we have a default value for train_epochs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants