{ }
Converts each entry in the given tensor to strings.
tf.raw_ops.AsString(
input,
precision=-1,
scientific=False,
shortest=False,
width=-1,
fill='',
name=None
)
Supports many numeric types and boolean.
For Unicode, see the https://www.tensorflow.org/tutorials/representation/unicode tutorial.
Examples:
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)
Returns | |
---|---|
A Tensor of type string .
|