Fix typo in `tf.reduce_mean` documentation.
authorDaniel Zheng <danielzheng@google.com>
Wed, 4 Apr 2018 22:28:01 +0000 (15:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 4 Apr 2018 22:32:16 +0000 (15:32 -0700)
The range of valid values for the `axis` argument should be `[-rank(input), rank(input))`, just like other reduction ops.

PiperOrigin-RevId: 191657767

tensorflow/python/ops/math_ops.py

index 39f4088..b460ce5 100644 (file)
@@ -1521,7 +1521,7 @@ def reduce_mean(input_tensor,
     input_tensor: The tensor to reduce. Should have numeric type.
     axis: The dimensions to reduce. If `None` (the default),
       reduces all dimensions. Must be in the range
-      `[-rank(input_tensor), rank(input_tensor)]`.
+      `[-rank(input_tensor), rank(input_tensor))`.
     keepdims: If true, retains reduced dimensions with length 1.
     name: A name for the operation (optional).
     reduction_indices: The old (deprecated) name for axis.