Skip to content

Commit bb36498

Browse files
nsthorattensorflower-gardener
authored andcommitted
Update mnist_with_summaries to format the run metadata runs with 3 digits for
step numbers so sorting run "99" is sorting "099" alphabetically and comes first. Change: 124246001
1 parent cda8879 commit bb36498

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tensorflow/examples/tutorials/mnist/mnist_with_summaries.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def feed_dict(train):
164164
feed_dict=feed_dict(True),
165165
options=run_options,
166166
run_metadata=run_metadata)
167-
train_writer.add_run_metadata(run_metadata, 'step%d' % i)
167+
train_writer.add_run_metadata(run_metadata, 'step%03d' % i)
168168
train_writer.add_summary(summary, i)
169169
print('Adding run metadata for', i)
170170
else: # Record a summary

0 commit comments

Comments
 (0)