From 2997ab5727acf62e98d19ff16b4302400d060c5a Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 6 Apr 2018 11:21:24 -0700 Subject: [PATCH] Minor doc clarification for reduce_sum return type PiperOrigin-RevId: 191914398 --- tensorflow/python/ops/math_ops.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py index b460ce5..01d670e 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, -- 2.7.4