tensorflow :: ops :: Rint
#include <math_ops.h>
Zwraca liczbę całkowitą najbliższą x.
streszczenie
Jeśli wynik jest w połowie odległości między dwiema reprezentowalnymi wartościami, wybierana jest parzysta reprezentowalna. Na przykład:
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.]
Argumenty:
- zakres: obiekt Scope
Zwroty:
-
Output
: tensor y.
Konstruktorzy i niszczyciele | |
---|---|
Rint (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Atrybuty publiczne | |
---|---|
operation | |
y |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atrybuty publiczne
operacja
Operation operation
y
::tensorflow::Output y
Funkcje publiczne
Rint
Rint( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
węzeł
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const