Converts each entry in the given tensor to strings.

Supports many numeric types and boolean.

For Unicode, see the tutorial.


tf.strings.as_string([3, 2])
<tf.Tensor: shape=(2,), dtype=string, numpy=array([b'3', b'2'], dtype=object)>
tf.strings.as_string([3.1415926, 2.71828], precision=2).numpy()
array([b'3.14', b'2.72'], dtype=object)

input A Tensor. Must be one of the following types: int8, int16, int32, int64, complex64, complex128, float32, float64,