Tensorflow :: ops :: Rint
#include <math_ops.h>
Gibt eine elementweise Ganzzahl zurück, die x am nächsten kommt.
Zusammenfassung
Wenn das Ergebnis auf halbem Weg zwischen zwei darstellbaren Werten liegt, wird der gerade darstellbare Wert ausgewählt. Beispielsweise:
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.]
Argumente:
- scope: Ein Scope- Objekt
Kehrt zurück:
-
Output
: Der y-Tensor.
Konstruktoren und Destruktoren | |
---|---|
Rint (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Öffentliche Attribute | |
---|---|
operation | |
y |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche Attribute
Operation
Operation operation
y
::tensorflow::Output y
Öffentliche Funktionen
Rint
Rint( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const