Skip to content

Commit

Permalink
Fix xent call in mnist tutorial code
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwicke authored Jan 8, 2017
1 parent 4b53df3 commit e93ec37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/image/mnist/convolutional.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def model(data, train=False):
# Training computation: logits + cross-entropy loss.
logits = model(train_data_node, True)
loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(
logits, train_labels_node))
labels=train_labels_node, logits=logits))

# L2 regularization for the fully connected parameters.
regularizers = (tf.nn.l2_loss(fc1_weights) + tf.nn.l2_loss(fc1_biases) +
Expand Down

0 comments on commit e93ec37

Please sign in to comment.