Tensorflow :: ops :: Real
#include <math_ops.h>
Gibt den Realteil einer komplexen Zahl zurück.
Zusammenfassung
Bei einem Tensor input
der komplexen Zahlen, gibt diese Operation ein Tensor Typen float
daß der Realteil jedes Element in ist input
. Alle Elemente in der input
müssen komplexe Zahlen der Form \(a + bj\) sein, wobei a der von dieser Operation zurückgegebene Realteil und b der Imaginärteil ist.
Beispielsweise:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.real(input) ==> [-2.25, 3.25]
Argumente:
- scope: Ein Scope- Objekt
Kehrt zurück:
-
Output
: Der Ausgangstensor.
Konstruktoren und Destruktoren | |
---|---|
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Real (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Real::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Tout (DataType x) |
Strukturen | |
---|---|
tensorflow :: ops :: Real :: Attrs | Optionale Attributsetzer für Real . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
Real
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Real
Real( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Real::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Schlepper
Attrs Tout( DataType x )