Skip to content

Commit 6918848

Browse files
YinongLongYinongLong
authored andcommitted
Add a name
There is an assertion about name, so I add this.
1 parent f5316d7 commit 6918848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/tutorial_mnist_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# define cost function and metric.
3535
y = network.outputs
36-
cost = tl.cost.cross_entropy(y, y_)
36+
cost = tl.cost.cross_entropy(y, y_, name='xentropy')
3737
correct_prediction = tf.equal(tf.argmax(y, 1), y_)
3838
acc = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
3939
y_op = tf.argmax(tf.nn.softmax(y), 1)

0 commit comments

Comments
 (0)