Have a question? Connect with the community at the TensorFlow Forum Visit Forum

Rint

public final class Rint

Returns element-wise integer closest to x.

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.]
 

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output <T>
asOutput ()
Returns the symbolic handle of the tensor.
static <T extends TNumber > Rint <T>
create ( Scope scope, Operand <T> x)
Factory method to create a class wrapping a new Rint operation.
Output <T>
y ()

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "Rint"

Public Methods

public Output <T> asOutput ()

Returns the symbolic handle of the tensor.

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.

public static Rint <T> create ( Scope scope, Operand <T> x)

Factory method to create a class wrapping a new Rint operation.

Parameters
scope current scope
Returns
  • a new instance of Rint

public Output <T> y ()