Skip to content

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?


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