Skip to content

Commit 05944f9

Browse files
committed
[cost] unique name
1 parent 3fc8760 commit 05944f9

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
@@ -31,7 +31,7 @@ def cross_entropy(output, target, name=None):
3131
- About cross-entropy: `wiki <https://en.wikipedia.org/wiki/Cross_entropy>`_.\n
3232
- The code is borrowed from: `here <https://en.wikipedia.org/wiki/Cross_entropy>`_.
3333
"""
34-
assert name is not None, print("Please give a unique name to tl.cost.cross_entropy")
34+
assert name is not None, "Please give a unique name to tl.cost.cross_entropy"
3535

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))

0 commit comments

Comments
 (0)