przepływ tensorowy:: ops:: Złożony
#include <math_ops.h>
Konwertuje dwie liczby rzeczywiste na liczbę zespoloną.
Streszczenie
Biorąc pod uwagę tensor real
reprezentujący część rzeczywistą liczby zespolonej i imag
reprezentujący część urojoną liczby zespolonej, operacja ta zwraca liczby zespolone elementarnie w postaci \(a + bj\), gdzie a reprezentuje część real
, a b reprezentuje imag
część.
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 Scope
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:: Atrybuty | Opcjonalne moduły ustawiające atrybuty dla Complex . |
Atrybuty publiczne
operacja
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::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Naganiacz
Attrs Tout( DataType x )