From 75c0cfd1fdb1b460fc10786ef89376f8e86fe8d4 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Mon, 21 May 2018 23:29:32 +0000 Subject: [PATCH] Fix discrepancies between doc and implementation for math_ops In the docstring of math_ops, there are some discrepancies between the supported data types and the actual implementation: `abs` supports `float16`. Signed-off-by: Yong Tang --- tensorflow/python/ops/math_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py index 3a31ef7..7660c40 100644 --- a/tensorflow/python/ops/math_ops.py +++ b/tensorflow/python/ops/math_ops.py @@ -125,8 +125,8 @@ def abs(x, name=None): # pylint: disable=redefined-builtin ``` Args: - x: A `Tensor` or `SparseTensor` of type `float32`, `float64`, `int32`, - `int64`, `complex64` or `complex128`. + x: A `Tensor` or `SparseTensor` of type `float16`, `float32`, `float64`, + `int32`, `int64`, `complex64` or `complex128`. name: A name for the operation (optional). Returns: -- 2.7.4