aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/losses
diff options
context:
space:
mode:
authorGravatar Andrew Selle <aselle@google.com>2016-12-16 08:25:51 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-16 08:44:39 -0800
commit5657fad879b51353b28043562d3d7c846ca7873f (patch)
tree3c9a99eb558e164756253dc86d5c21b07a20193f /tensorflow/contrib/losses
parent3ab66c1fb38fbf1d6953c9dcf0c7be5d871d7c25 (diff)
Change remaining tf.mul -> tf.multiply, tf.neg -> tf.negative, and tf.sub -> tf.subtract
tf.negative, tf.multiply, tf.subtract are the new names Change: 142262067
Diffstat (limited to 'tensorflow/contrib/losses')
-rw-r--r--tensorflow/contrib/losses/python/losses/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/losses/python/losses/__init__.py b/tensorflow/contrib/losses/python/losses/__init__.py
index f53d4a000d..1b57f0baee 100644
--- a/tensorflow/contrib/losses/python/losses/__init__.py
+++ b/tensorflow/contrib/losses/python/losses/__init__.py
@@ -53,7 +53,7 @@ for a specific class:
# Ensures that the loss for examples whose ground truth class is `3` is 5x
# higher than the loss for all other examples.
- weight = tf.mul(4, tf.cast(tf.equal(labels, 3), tf.float32)) + 1
+ weight = tf.multiply(4, tf.cast(tf.equal(labels, 3), tf.float32)) + 1
onehot_labels = tf.one_hot(labels, num_classes=5)
tf.contrib.losses.softmax_cross_entropy(logits, onehot_labels, weight=weight)