Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nurtas-m committed Apr 14, 2017
1 parent e2b4b3b commit 4bb83d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions g2p_seq2seq/g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ def train(self):
current_step, iter_inx, num_epochs_last_impr, max_num_epochs,\
num_up_trends, num_down_trends = 0, 0, 0, 2, 0, 0
prev_train_losses, prev_valid_losses, prev_epoch_valid_losses = [], [], []
num_iter_cover_train = int(sum(train_bucket_sizes) /
self.params.batch_size /
self.params.steps_per_checkpoint)
num_iter_cover_train = max(1, int(sum(train_bucket_sizes) /
self.params.batch_size /
self.params.steps_per_checkpoint))
while (self.params.max_steps == 0
or self.model.global_step.eval(self.session)
<= self.params.max_steps):
Expand Down

0 comments on commit 4bb83d8

Please sign in to comment.