{ }
View source on GitHub |
Formats a string template using a list of tensors.
tf.strings.format(
template, inputs, placeholder='{}', summarize=3, name=None
)
Formats a string template using a list of tensors, abbreviating tensors by
only printing the first and last summarize
elements of each dimension
(recursively). If formatting only one tensor into a template, the tensor does
not have to be wrapped in a list.
Example | |
---|---|
Formatting a single-tensor template:
Formatting a multi-tensor template:
|
Returns | |
---|---|
A scalar Tensor of type string .
|
Raises | |
---|---|
ValueError
|
if the number of placeholders does not match the number of inputs. |