@@ -1104,7 +1104,7 @@ def unwrap(func):
11041104
11051105 def close (self ):
11061106 self ._cleanup ()
1107-
1107+ # print("\nStep Number in the close function: ", self.step)
11081108 if self .python_profiler :
11091109 # print("python profiling for end of last train step to end of training")
11101110 self .python_profiler .start_profiling (
@@ -1152,6 +1152,8 @@ def run(*args, **kwargs):
11521152 self .prepared_collections = True
11531153
11541154 self ._increment_step ()
1155+ # print("\nStep number in the push tape: ", self.step)
1156+
11551157
11561158 if self ._get_collections_to_save_for_step ():
11571159 # print('\n Collections saved for this step: ', self._get_collections_to_save_for_step())
@@ -1242,6 +1244,7 @@ def run(*args, **kwargs):
12421244 return
12431245
12441246 self .last_saved_step = self .step
1247+ # print("\nStep number in the pop tape: ", self.step)
12451248
12461249 return run
12471250
@@ -1318,7 +1321,7 @@ def profiling_start_batch(self, mode):
13181321 if self .mode != ModeKeys .GLOBAL :
13191322 self .mode_steps [ModeKeys .GLOBAL ] = self .step
13201323
1321- print ("Step Number in start train batch: " , self .mode_steps [mode ])
1324+ # print("Step Number in start train batch: ", self.mode_steps[mode])
13221325
13231326 self .profiler_config_parser .load_config ()
13241327
@@ -1380,6 +1383,7 @@ def profiling_end_batch(self, mode):
13801383 """
13811384 Enabling profiler at the end of train batch when native tf2 training is used.
13821385 """
1386+ # print("Step Number in end train batch: ", self.mode_steps[mode])
13831387 if self ._is_not_supported ():
13841388 return
13851389
@@ -1412,6 +1416,7 @@ def profiling_end(self):
14121416 """
14131417 Stop profiler at the end of training when native tf2 training is used.
14141418 """
1419+ # print("Step Number at the end of training: ", self.step)
14151420 # Unwrap the tape before closing and close the python profiling
14161421 self .close ()
14171422
0 commit comments