tf.raw_ops.StringFormat

Formats a string template using a list of tensors.

tf.raw_ops.StringFormat(
    inputs, template='%s', placeholder='%s', summarize=3, name=None
)

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.