T
- data type for y()
output@Operator(group="math") public final class Rint<T extends Number> extends PrimitiveOp implements Operand<T>
If the result is midway between two representable values, the even representable is chosen. For example:
rint(-1.5) ==> -2.0
rint(0.5000001) ==> 1.0
rint([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) ==> [-2., -2., -0., 0., 2., 2., 2.]
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
create(Scope scope,
Operand<T> x)
Factory method to create a class wrapping a new Rint operation.
|
Output<T> |
y() |
equals, hashCode, op, toString
public static <T extends Number> Rint<T> create(Scope scope, Operand<T> x)
scope
- current scopex
- public Output<T> 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<T extends Number>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.