Skip to content

Commit

Permalink
named arguments for compatability with tf 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Beyer committed Mar 23, 2017
1 parent 9a319f2 commit a2f856a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion two_layer_fc.py
Expand Up @@ -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(
Expand Down

0 comments on commit a2f856a

Please sign in to comment.