aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/labeled_tensor
diff options
context:
space:
mode:
authorGravatar Martin Wicke <wicke@google.com>2016-11-15 13:35:35 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-15 13:45:09 -0800
commitfb01ebb8c38b2d274f6fe9a7115b2362828a452e (patch)
tree81b598b8c41108b36c9f08331d1adf2415af0051 /tensorflow/contrib/labeled_tensor
parent7632193992bb77e08cfe93f752ccfd7a27cb2618 (diff)
Deprecate tf.inv in favor of tf.reciprocal.
Change: 139240711
Diffstat (limited to 'tensorflow/contrib/labeled_tensor')
-rw-r--r--tensorflow/contrib/labeled_tensor/__init__.py2
-rw-r--r--tensorflow/contrib/labeled_tensor/python/ops/core.py2
-rw-r--r--tensorflow/contrib/labeled_tensor/python/ops/core_test.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/labeled_tensor/__init__.py b/tensorflow/contrib/labeled_tensor/__init__.py
index 75299a3a0e..71bb7b95f5 100644
--- a/tensorflow/contrib/labeled_tensor/__init__.py
+++ b/tensorflow/contrib/labeled_tensor/__init__.py
@@ -53,7 +53,7 @@ define_reduce_op = _ops.define_reduce_op
abs = _core.abs_function # pylint: disable=redefined-builtin
neg = _core.neg
sign = _core.sign
-inv = _core.inv
+reciprocal = _core.reciprocal
square = _core.square
round = _core.round_function # pylint: disable=redefined-builtin
sqrt = _core.sqrt
diff --git a/tensorflow/contrib/labeled_tensor/python/ops/core.py b/tensorflow/contrib/labeled_tensor/python/ops/core.py
index 69fd06133b..870dbdd383 100644
--- a/tensorflow/contrib/labeled_tensor/python/ops/core.py
+++ b/tensorflow/contrib/labeled_tensor/python/ops/core.py
@@ -1098,7 +1098,7 @@ def define_unary_op(op_name, elementwise_function):
abs_function = define_unary_op('abs', math_ops.abs)
neg = define_unary_op('neg', math_ops.neg)
sign = define_unary_op('sign', math_ops.sign)
-inv = define_unary_op('inv', math_ops.inv)
+reciprocal = define_unary_op('reciprocal', math_ops.reciprocal)
square = define_unary_op('square', math_ops.square)
round_function = define_unary_op('round', math_ops.round)
sqrt = define_unary_op('sqrt', math_ops.sqrt)
diff --git a/tensorflow/contrib/labeled_tensor/python/ops/core_test.py b/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
index 5710dc34e8..f01955d507 100644
--- a/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
+++ b/tensorflow/contrib/labeled_tensor/python/ops/core_test.py
@@ -687,7 +687,7 @@ class CoreUnaryOpsTest(Base, DocStringCheckMixin, UnaryOpsTestsMixin):
# TODO(shoyer): add unary + to core TensorFlow
('pos', None, None, None),
('sign', None, tf.sign, core.sign),
- ('inv', None, tf.inv, core.inv),
+ ('reciprocal', None, tf.reciprocal, core.reciprocal),
('square', None, tf.square, core.square),
('round', None, tf.round, core.round_function),
('sqrt', None, tf.sqrt, core.sqrt),