StringFormat

public final class StringFormat

Formats a string template using a list of tensors.

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

Nested Classes

class StringFormat.Options Optional attributes for StringFormat  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TString>
asOutput()
Returns the symbolic handle of the tensor.
static StringFormat
create(Scope scope, Iterable<Operand<?>> inputs, Options... options)
Factory method to create a class wrapping a new StringFormat operation.
Output<TString>
output()
= The resulting string scalar.
static StringFormat.Options
placeholder(String placeholder)
static StringFormat.Options
summarize(Long summarize)
static StringFormat.Options
template(String template)

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "StringFormat"

Public Methods

public Output<TString> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static StringFormat create (Scope scope, Iterable<Operand<?>> inputs, Options... options)

Factory method to create a class wrapping a new StringFormat operation.

Parameters
scope current scope
inputs The list of tensors to format into the placeholder string.
options carries optional attributes values
Returns
  • a new instance of StringFormat

public Output<TString> output ()

= The resulting string scalar.

public static StringFormat.Options placeholder (String placeholder)

Parameters
placeholder A string, at each placeholder in the template a subsequent tensor summary will be inserted.

public static StringFormat.Options summarize (Long summarize)

Parameters
summarize When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.

public static StringFormat.Options template (String template)

Parameters
template A string, the template to format tensor summaries into.