File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -276,10 +276,7 @@ def main(unused_argv):
276
276
checkpoints_iterator = tf .contrib .training .checkpoints_iterator (
277
277
FLAGS .checkpoint_dir , min_interval_secs = FLAGS .eval_interval_secs )
278
278
for checkpoint_path in checkpoints_iterator :
279
- if max_num_iteration > 0 and num_iteration > max_num_iteration :
280
- break
281
279
num_iteration += 1
282
-
283
280
tf .logging .info (
284
281
'Starting visualization at ' + time .strftime ('%Y-%m-%d-%H:%M:%S' ,
285
282
time .gmtime ()))
@@ -313,6 +310,8 @@ def main(unused_argv):
313
310
tf .logging .info (
314
311
'Finished visualization at ' + time .strftime ('%Y-%m-%d-%H:%M:%S' ,
315
312
time .gmtime ()))
313
+ if max_num_iteration > 0 and num_iteration >= max_num_iteration :
314
+ break
316
315
317
316
if __name__ == '__main__' :
318
317
flags .mark_flag_as_required ('checkpoint_dir' )
You can’t perform that action at this time.
0 commit comments