projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ab85f
)
Update doc string for tf.count_nonzero to add string type
author
Yong Tang
<yong.tang.github@outlook.com>
Fri, 20 Apr 2018 02:55:31 +0000
(
02:55
+0000)
committer
Yong Tang
<yong.tang.github@outlook.com>
Fri, 20 Apr 2018 03:46:57 +0000
(
03:46
+0000)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
tensorflow/python/ops/math_ops.py
patch
|
blob
|
history
diff --git
a/tensorflow/python/ops/math_ops.py
b/tensorflow/python/ops/math_ops.py
index
8c9ad66
..
31ce839
100644
(file)
--- a/
tensorflow/python/ops/math_ops.py
+++ b/
tensorflow/python/ops/math_ops.py
@@
-1467,7
+1467,8
@@
def count_nonzero(input_tensor,
```
Args:
- input_tensor: The tensor to reduce. Should be of numeric type, or `bool`.
+ input_tensor: The tensor to reduce. Should be of numeric type, `string`,
+ or `bool`.
axis: The dimensions to reduce. If `None` (the default),
reduces all dimensions. Must be in the range
`[-rank(input_tensor), rank(input_tensor))`.