From: Yong Tang Date: Mon, 21 May 2018 23:29:32 +0000 (+0000) Subject: Fix discrepancies between doc and implementation for math_ops X-Git-Tag: upstream/v1.9.0_rc1~78^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75c0cfd1fdb1b460fc10786ef89376f8e86fe8d4;p=platform%2Fupstream%2Ftensorflow.git 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 --- 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: