Update doc string for tf.count_nonzero to add string type
authorYong Tang <yong.tang.github@outlook.com>
Fri, 20 Apr 2018 02:55:31 +0000 (02:55 +0000)
committerYong 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

index 8c9ad66..31ce839 100644 (file)
@@ -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))`.