We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a784a commit 534b4feCopy full SHA for 534b4fe
examples/4_Utils/tensorboard_advanced.py
@@ -71,7 +71,7 @@ def multilayer_perceptron(x, weights, biases):
71
72
with tf.name_scope('Loss'):
73
# Softmax Cross entropy (cost function)
74
- loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(pred, y))
+ loss = tf.reduce_sum(tf.nn.softmax_cross_entropy_with_logits(logits=pred, labels=y))
75
76
with tf.name_scope('SGD'):
77
# Gradient Descent
0 commit comments