File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -391,8 +391,11 @@ def resnet_main(
391
391
"""
392
392
393
393
print ("\n " * 3 )
394
+ sys .stdout .flush ()
395
+
394
396
tf .logging .info ("TF version: {}" .format (tf .VERSION ))
395
397
tf .logging .info ("TF git version: {}" .format (tf .GIT_VERSION ))
398
+
396
399
print ("\n " * 3 )
397
400
sys .stdout .flush ()
398
401
@@ -490,8 +493,14 @@ def input_fn_eval():
490
493
schedule [- 1 ] = flags_obj .train_epochs - sum (schedule [:- 1 ]) # over counting.
491
494
492
495
for cycle_index , num_train_epochs in enumerate (schedule ):
496
+ print ("\n " * 3 )
497
+ sys .stdout .flush ()
498
+
493
499
tf .logging .info ('Starting cycle: %d/%d' , cycle_index , int (n_loops ))
494
500
501
+ print ("\n " * 3 )
502
+ sys .stdout .flush ()
503
+
495
504
if num_train_epochs :
496
505
classifier .train (input_fn = lambda : input_fn_train (num_train_epochs ),
497
506
hooks = train_hooks , steps = 5 )
You can’t perform that action at this time.
0 commit comments