@Operator(group="strings") 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 wrapping a new UnicodeScript operation.
|
Output<Integer> |
output()
A Tensor of int32 script codes corresponding to each input code point.
|
equals, hashCode, op, toString
public static UnicodeScript create(Scope scope, Operand<Integer> input)
scope
- current scopeinput
- A Tensor of int32 Unicode code points.public Output<Integer> output()
public Output<Integer> 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<Integer>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.