Skip to content

Commit

Permalink
Merge pull request #99 from RoyaAoki/master
Browse files Browse the repository at this point in the history
Removed unnecessary line
  • Loading branch information
sherjilozair authored Sep 12, 2017
2 parents 48772ca + 523c556 commit 401ebfd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def loop(prev, _):
[self.logits],
[tf.reshape(self.targets, [-1])],
[tf.ones([args.batch_size * args.seq_length])])
self.cost = tf.reduce_sum(loss) / args.batch_size / args.seq_length
with tf.name_scope('cost'):
self.cost = tf.reduce_sum(loss) / args.batch_size / args.seq_length
self.final_state = last_state
Expand Down
1 change: 0 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def train(args):
for i, (c, h) in enumerate(model.initial_state):
feed[c] = state[i].c
feed[h] = state[i].h
train_loss, state, _ = sess.run([model.cost, model.final_state, model.train_op], feed)

# instrument for tensorboard
summ, train_loss, state, _ = sess.run([summaries, model.cost, model.final_state, model.train_op], feed)
Expand Down

0 comments on commit 401ebfd

Please sign in to comment.