Skip to content

Commit

Permalink
Minor fix to comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SuyashLakhotia authored Sep 28, 2017
1 parent 4ce1c30 commit e52f275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
self.scores = tf.nn.xw_plus_b(self.h_drop, W, b, name="scores")
self.predictions = tf.argmax(self.scores, 1, name="predictions")

# CalculateMean cross-entropy loss
# Calculate mean cross-entropy loss
with tf.name_scope("loss"):
losses = tf.nn.softmax_cross_entropy_with_logits(logits=self.scores, labels=self.input_y)
self.loss = tf.reduce_mean(losses) + l2_reg_lambda * l2_loss
Expand Down

0 comments on commit e52f275

Please sign in to comment.