Skip to content

Commit 7cc5f2f

Browse files
YinongLongYinongLong
authored andcommitted
This is an error
1 parent 6918848 commit 7cc5f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/cost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def cross_entropy(output, target, name=None):
3636
if tf.__version__ <= "0.12":
3737
return tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(logits=output, targets=target, name=name))
3838
else: # TF 1.0
39-
return tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(labels=target, logits=outputs, name=name))
39+
return tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(labels=target, logits=output, name=name))
4040

4141

4242

0 commit comments

Comments
 (0)