tensorflow:: ops:: Complex
#include <math_ops.h>Converte due numeri reali in un numero complesso.
Riepilogo
Dato un tensore real che rappresenta la parte reale di un numero complesso e un tensore imag che rappresenta la parte immaginaria di un numero complesso, questa operazione restituisce i numeri complessi elemento per elemento della forma \(a + bj\), dove a rappresenta la parte real e b rappresenta la parte imag .
I tensori di input real e imag devono avere la stessa forma.
Per esempio:
# 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]]
Argomentazioni:
- ambito: un oggetto Scope
Resi:
-
Output: Il tensore di output.
Costruttori e distruttori | |
|---|---|
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) |
attributi pubblici | |
|---|---|
operation | |
out | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
Tout (DataType x) | |
Strutture | |
|---|---|
| tensorflow::ops::Complex::Attrs | Impostatori di attributi opzionali per Complex . |
attributi pubblici
operazione
Operation operation
fuori
::tensorflow::Output out
Funzioni pubbliche
Complesso
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Complesso
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
Tutto
Attrs Tout( DataType x )