| Modifier and Type | Class and Description |
|---|---|
static class |
StringLength.Options
Optional attributes for
StringLength |
operation| Modifier and Type | Method and Description |
|---|---|
Output<Integer> |
asOutput()
Returns the symbolic handle of a tensor.
|
static StringLength |
create(Scope scope,
Operand<String> input,
StringLength.Options... options)
Factory method to create a class to wrap a new StringLength operation to the graph.
|
Output<Integer> |
output()
Integer tensor that has the same shape as `input`.
|
static StringLength.Options |
unit(String unit) |
equals, hashCode, toStringpublic static StringLength create(Scope scope, Operand<String> input, StringLength.Options... options)
scope - current graph scopeinput - The string for which to compute the length.options - carries optional attributes valuespublic static StringLength.Options unit(String unit)
unit - The unit that is counted to compute string length. One of: `"BYTE"` (for
the number of bytes in each string) or `"UTF8_CHAR"` (for the number of UTF-8
encoded Unicode code points in each string). Results are undefined
if `unit=UTF8_CHAR` and the `input` strings do not contain structurally
valid UTF-8.public Output<Integer> output()
public Output<Integer> asOutput()
OperandInputs 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<Integer>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.