Commit 418b5abd authored by Yong Tang's avatar Yong Tang
Browse files

Fix incorrect documentation for `tf.reduce_any`



This fix fixes the incorrect documentation for `tf.reduce_any`. The
previous description:
```
   If `axis` has no entries, all dimensions are reduced, and a
   tensor with a single element is returned.
```

is not correct. See below:
```
Python 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> x = tf.constant([[True,  True], [False, False]])
>>> v1 = tf.reduce_any(x, [])
>>> tf.Session().run(v1)
array([[ True,  True],
       [False, False]])
>>> v2 = tf.reduce_any(x, None)
>>> tf.Session().run(v2)
True
>>>
```

Instead, the correct description should be:
```
   If `axis` is None, all dimensions are reduced, and a
   tensor with a single element is returned.
```

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent dcb10b1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment