tensorflow:: ops:: Complex
#include <math_ops.h>Zamienia dwie liczby rzeczywiste na liczbę zespoloną.
Streszczenie
Biorąc pod uwagę tensor real reprezentujący część rzeczywistą liczby zespolonej i tensor imag reprezentujący część urojoną liczby zespolonej, ta operacja zwraca liczby zespolone elementarnie w postaci \(a + bj\)gdzie a przedstawia część real , a b przedstawia część imag .
Tensory wejściowe real i imag muszą mieć ten sam kształt.
Na przykład:
# 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]]
Argumenty:
- zakres: obiekt zakresu
Zwroty:
-
Output: tensor wyjściowy.
Konstruktory i destruktory | |
|---|---|
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) |
Atrybuty publiczne | |
|---|---|
operation | |
out | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Publiczne funkcje statyczne | |
|---|---|
Tout (DataType x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: Complex:: Attrs | Opcjonalne ustawiacze atrybutów dla Complex . |
Atrybuty publiczne
działanie
Operation operation
na zewnątrz
::tensorflow::Output out
Funkcje publiczne
Złożony
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Złożony
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Naganiacz
Attrs Tout( DataType x )