Skip to content
Snippets Groups Projects
Commit 5d6d7d35 authored by gong1's avatar gong1
Browse files

fix bugs

parent 5012e484
Branches michael_issue#140_best_model_after_training
Tags
No related merge requests found
Pipeline #91176 failed
......@@ -247,6 +247,10 @@ class TrainModel(object):
self.steps_per_epoch = int(self.num_examples/self.batch_size)
self.total_steps = self.steps_per_epoch * self.max_epochs
self.diag_intv_step = int(self.diag_intv_frac*self.total_steps)
if self.diag_intv_step == 0:
self.diag_intv_step = 1
else:
pass
print("%{}: Batch size: {}; max_epochs: {}; num_samples per epoch: {}; steps_per_epoch: {}, total steps: {}"
.format(method, self.batch_size, self.max_epochs, self.num_examples, self.steps_per_epoch,
self.total_steps))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment