Fix discrepancies between doc and implementation for math_ops
authorYong Tang <yong.tang.github@outlook.com>
Mon, 21 May 2018 23:29:32 +0000 (23:29 +0000)
committerYong Tang <yong.tang.github@outlook.com>
Mon, 21 May 2018 23:48:58 +0000 (23:48 +0000)
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 <yong.tang.github@outlook.com>
tensorflow/python/ops/math_ops.py

index 3a31ef7..7660c40 100644 (file)
@@ -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: