@Operator public final class UnicodeScript extends PrimitiveOp implements Operand<Integer>
This operation converts Unicode code points to script codes corresponding to each code point. Script codes correspond to International Components for Unicode (ICU) UScriptCode values. See http://icu-project.org/apiref/icu4c/uscript_8h.html. Returns -1 (USCRIPT_INVALID_CODE) for invalid codepoints. Output shape will match input shape.
operation| Modifier and Type | Method and Description |
|---|---|
Output<Integer> |
asOutput()
Returns the symbolic handle of a tensor.
|
static UnicodeScript |
create(Scope scope,
Operand<Integer> input)
Factory method to create a class to wrap a new UnicodeScript operation to the graph.
|
Output<Integer> |
output()
A Tensor of int32 script codes corresponding to each input code point.
|
equals, hashCode, toStringpublic static UnicodeScript create(Scope scope, Operand<Integer> input)
scope - current graph scopeinput - A Tensor of int32 Unicode code points.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.