aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
diff options
context:
space:
mode:
authorGravatar Andrew Selle <aselle@google.com>2017-01-11 09:35:14 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-11 09:48:10 -0800
commitbe270ecb79c8548a0caddf67908189e6169b1472 (patch)
treec6a1b72479dcac3c3ece17b7cf5ddfdfe04e5b8d /tensorflow/contrib/labeled_tensor/python/ops/core_test.py
parentd4a9d91bc68ffa9f0148ae6fe344b7d3e3de7221 (diff)
Deprecate tf.neg, tf.mul, tf.sub (and remove math_ops.{neg,mul,sub} usages
tf.negative, tf.multiply, tf.subtract are the new names - Also enabled deprecation warning (to be completely removed by friday) Change: 144215355
Diffstat (limited to 'tensorflow/contrib/labeled_tensor/python/ops/core_test.py')
-rw-r--r--tensorflow/contrib/labeled_tensor/python/ops/core_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/labeled_tensor/python/ops/core_test.py b/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
index 19cc85cb41..1f4a3ef568 100644
--- a/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
+++ b/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
@@ -703,7 +703,7 @@ class CoreUnaryOpsTest(Base, DocStringCheckMixin, UnaryOpsTestsMixin):
self.ops = [
('abs', operator.abs, math_ops.abs, core.abs_function),
- ('neg', operator.neg, math_ops.neg, core.neg),
+ ('neg', operator.neg, math_ops.negative, core.neg),
# TODO(shoyer): add unary + to core TensorFlow
('pos', None, None, None),
('sign', None, math_ops.sign, core.sign),
@@ -780,8 +780,8 @@ class CoreBinaryOpsTest(Base, DocStringCheckMixin, BinaryOpsTestsMixin):
# elementwise for LabeledTensor, either.
self.ops = [
('add', operator.add, math_ops.add, core.add),
- ('sub', operator.sub, math_ops.sub, core.sub),
- ('mul', operator.mul, math_ops.mul, core.mul),
+ ('sub', operator.sub, math_ops.subtract, core.sub),
+ ('mul', operator.mul, math_ops.multiply, core.mul),
('div', operator.truediv, math_ops.div, core.div),
('mod', operator.mod, math_ops.mod, core.mod),
('pow', operator.pow, math_ops.pow, core.pow_function),