Class StringFormat
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.strings.StringFormat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasOutput()Returns the symbolic handle of the tensor.static StringFormatcreate(Scope scope, Iterable<Operand<?>> inputs, StringFormat.Options... options) Factory method to create a class wrapping a new StringFormat operation.output()Gets output. = The resulting string scalar.static StringFormat.Optionsplaceholder(String placeholder) Sets the placeholder option.static StringFormat.OptionsSets the summarize option.static StringFormat.OptionsSets the template option.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
StringFormat
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static StringFormat create(Scope scope, Iterable<Operand<?>> inputs, StringFormat.Options... options) Factory method to create a class wrapping a new StringFormat operation.- Parameters:
scope- current scopeinputs- The list of tensors to format into the placeholder string.options- carries optional attribute values- Returns:
- a new instance of StringFormat
-
template
Sets the template option.- Parameters:
template- A string, the template to format tensor summaries into.- Returns:
- this Options instance.
-
placeholder
Sets the placeholder option.- Parameters:
placeholder- A string, at each placeholder in the template a subsequent tensor summary will be inserted.- Returns:
- this Options instance.
-
summarize
Sets the summarize option.- Parameters:
summarize- When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.- Returns:
- this Options instance.
-
output
-
asOutput
Description copied from interface:OperandReturns 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.
-