Skip to content
Snippets Groups Projects
Commit 3ee82854 authored by BING GONG's avatar BING GONG
Browse files

add print for start step to save checkpoint

parent ebded8a4
No related branches found
No related tags found
No related merge requests found
Pipeline #76840 passed
...@@ -264,6 +264,7 @@ class TrainModel(object): ...@@ -264,6 +264,7 @@ class TrainModel(object):
self.start_checkpoint_step = int(math.ceil(self.total_steps * self.frac_save_model_start)) self.start_checkpoint_step = int(math.ceil(self.total_steps * self.frac_save_model_start))
self.saver_interval_step = int(math.ceil(self.total_steps * self.prob_save_model)) self.saver_interval_step = int(math.ceil(self.total_steps * self.prob_save_model))
print("The model will be saved starting from step {} with {} interval step ".format(str(self.start_checkpoint_step),self.saver_interval_step))
def restore(self, sess, checkpoints, restore_to_checkpoint_mapping=None): def restore(self, sess, checkpoints, restore_to_checkpoint_mapping=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment