Modifier and Type | Class and Description |
---|---|
static class |
StringFormat.Options
Optional attributes for
StringFormat |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static StringFormat |
create(Scope scope,
Iterable<Operand<?>> inputs,
StringFormat.Options... options)
Factory method to create a class wrapping a new StringFormat operation.
|
Output<String> |
output()
= The resulting string scalar.
|
static StringFormat.Options |
placeholder(String placeholder) |
static StringFormat.Options |
summarize(Long summarize) |
static StringFormat.Options |
template(String template) |
equals, hashCode, op, toString
public static StringFormat create(Scope scope, Iterable<Operand<?>> inputs, StringFormat.Options... options)
scope
- current scopeinputs
- The list of tensors to format into the placeholder string.options
- carries optional attributes valuespublic static StringFormat.Options template(String template)
template
- A string, the template to format tensor summaries into.public static StringFormat.Options placeholder(String placeholder)
placeholder
- A string, at each placeholder in the template a subsequent tensor summary will be inserted.public static StringFormat.Options summarize(Long summarize)
summarize
- When formatting the tensor summaries print the first and last summarize entries of each tensor dimension.public Output<String> asOutput()
Operand
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.
asOutput
in interface Operand<String>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.