T - data type for output() output@Operator(group="strings") public final class ToNumber<T extends Number> extends PrimitiveOp implements Operand<T>
(Note that int32 overflow results in an error while float overflow results in a rounded value.)
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static ToNumber<Float> |
create(Scope scope,
Operand<String> stringTensor)
Factory method to create a class wrapping a new ToNumber operation using default output types.
|
static <T extends Number> |
create(Scope scope,
Operand<String> stringTensor,
Class<T> outType)
Factory method to create a class wrapping a new ToNumber operation.
|
Output<T> |
output()
A Tensor of the same shape as the input `string_tensor`.
|
equals, hashCode, op, toStringpublic static <T extends Number> ToNumber<T> create(Scope scope, Operand<String> stringTensor, Class<T> outType)
scope - current scopestringTensor - outType - The numeric type to interpret each string in `string_tensor` as.public static ToNumber<Float> create(Scope scope, Operand<String> stringTensor)
scope - current scopestringTensor - public Output<T> 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<T extends Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.