From a2f856a6a605f9a2703ece7a56fa4b7242bae65a Mon Sep 17 00:00:00 2001 From: Wolfgang Beyer Date: Thu, 23 Mar 2017 13:44:09 +0100 Subject: [PATCH] named arguments for compatability with tf 1.0 --- two_layer_fc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/two_layer_fc.py b/two_layer_fc.py index 44c93ec..cddbca1 100644 --- a/two_layer_fc.py +++ b/two_layer_fc.py @@ -72,7 +72,7 @@ def loss(logits, labels): # Operation to determine the cross entropy between logits and labels cross_entropy = tf.reduce_mean( tf.nn.sparse_softmax_cross_entropy_with_logits( - logits, labels, name='cross_entropy')) + logits=logits, labels=labels, name='cross_entropy')) # Operation for the loss function loss = cross_entropy + tf.add_n(tf.get_collection(