Skip to content

Commit

Permalink
Should not affect public.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 173467560
  • Loading branch information
tensorflower-gardener committed Oct 25, 2017
1 parent 7efbfc2 commit 641e0df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tensorflow/python/training/monitored_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,10 @@ def MonitoredTrainingSession(master='', # pylint: disable=invalid-name
config=config)

if checkpoint_dir:
all_hooks.append(basic_session_run_hooks.StepCounterHook(
output_dir=checkpoint_dir, every_n_steps=log_step_count_steps))
if log_step_count_steps and log_step_count_steps > 0:
all_hooks.append(
basic_session_run_hooks.StepCounterHook(
output_dir=checkpoint_dir, every_n_steps=log_step_count_steps))

if (save_summaries_steps and save_summaries_steps > 0) or (
save_summaries_secs and save_summaries_secs > 0):
Expand Down

0 comments on commit 641e0df

Please sign in to comment.