tf.raw_ops.StringFormat

Formats a string template using a list of tensors.

Formats a string template using a list of tensors, pretty-printing tensor summaries.

Args
inputs A list of Tensor objects. The list of tensors to format into the placeholder string.
template An optional string. Defaults to "%s". A string, the template to format tensor summaries into.
placeholder An optional string. Defaults to "%s". A string, at each placeholder in the template a subsequent tensor summary will be inserted.
summarize An optional int. Defaults to 3. When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.
name A name for the operation (optional).
Returns
A Tensor of type string.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/StringFormat