Tensorflow :: ops :: Komplex
#include <math_ops.h>
Konvertiert zwei reelle Zahlen in eine komplexe Zahl.
Zusammenfassung
Bei einem Tensor- real
der den Realteil einer komplexen Zahl darstellt, und einem Tensor- imag
das den Imaginärteil einer komplexen Zahl darstellt, gibt diese Operation komplexe Zahlen elementweise der Form \(a + bj\) zurück, wobei a den real
und b den imag
Teil darstellt.
Die Eingangstensoren real
und imag
müssen dieselbe Form haben.
Beispielsweise:
# tensor 'real' is [2.25, 3.25] # tensor `imag` is [4.75, 5.75] tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
Argumente:
- scope: Ein Scope- Objekt
Kehrt zurück:
-
Output
: Der Out-Tensor.
Konstruktoren und Destruktoren | |
---|---|
Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag) | |
Complex (const :: tensorflow::Scope & scope, :: tensorflow::Input real, :: tensorflow::Input imag, const Complex::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
out |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Tout (DataType x) |
Strukturen | |
---|---|
tensorflow :: ops :: Complex :: Attrs | Optionale Attributsetzer für Complex . |
Öffentliche Attribute
Operation
Operation operation
aus
::tensorflow::Output out
Öffentliche Funktionen
Komplex
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Komplex
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::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 )