From 93a975e114ee1c35f01ed3bdd47170e6f7129014 Mon Sep 17 00:00:00 2001 From: Vijay Vasudevan Date: Fri, 17 Feb 2017 17:05:49 -0800 Subject: Merge changes from github. Change: 147897309 --- tensorflow/examples/learn/mnist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/examples/learn/mnist.py') diff --git a/tensorflow/examples/learn/mnist.py b/tensorflow/examples/learn/mnist.py index 4b3f1835e2..6e5fe7891b 100644 --- a/tensorflow/examples/learn/mnist.py +++ b/tensorflow/examples/learn/mnist.py @@ -67,7 +67,7 @@ def conv_model(feature, target, mode): # Compute logits (1 per class) and compute loss. logits = layers.fully_connected(h_fc1, 10, activation_fn=None) - loss = tf.contrib.losses.softmax_cross_entropy(logits, target) + loss = tf.losses.softmax_cross_entropy(target, logits) # Create a tensor for training op. train_op = layers.optimize_loss( -- cgit v1.2.3