aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/math_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/math_ops.py')
-rw-r--r--tensorflow/python/ops/math_ops.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py
index b460ce5b95..01d670ea2d 100644
--- a/tensorflow/python/ops/math_ops.py
+++ b/tensorflow/python/ops/math_ops.py
@@ -1402,10 +1402,11 @@ def reduce_sum(input_tensor,
keep_dims: Deprecated alias for `keepdims`.
Returns:
- The reduced tensor.
+ The reduced tensor, of the same dtype as the input_tensor.
@compatibility(numpy)
- Equivalent to np.sum
+ Equivalent to np.sum appart the fact that numpy upcast uint8 and int32 to
+ int64 while tensorflow returns the same dtype as the input.
@end_compatibility
"""
keepdims = deprecation.deprecated_argument_lookup("keepdims", keepdims,