tensorflow:: ops:: Complex
#include <math_ops.h>Converts two real numbers to a complex number.
Résumé
Étant donné un tenseur real représentant la partie réelle d'un nombre complexe et un tenseur imag représentant sa partie imaginaire, cette opération renvoie les nombres complexes élément par élément de la forme suivante : \(a + bj\), où a représente la partie real et b représente la partie imag .
Les tenseurs d'entrée real et imag doivent avoir la même forme.
Par exemple:
# 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]]
Arguments :
- portée : un objet Scope
Retours :
-
Output: The out tensor.
Constructeurs et destructeurs | |
|---|---|
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) |
attributs publics | |
|---|---|
operation | |
out | |
fonctions publiques | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
fonctions statiques publiques | |
|---|---|
Tout (DataType x) | |
Structures | |
|---|---|
| tensorflow:: ops:: Complex:: Attrs | Optional attribute setters for Complex . |
attributs publics
opération
Operation operation
dehors
::tensorflow::Output out
fonctions publiques
Complexe
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Complexe
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs )
nœud
::tensorflow::Node * node() const
opérateur::tensorflow::Entrée
operator::tensorflow::Input() const
opérateur::tensorflow::Sortie
operator::tensorflow::Output() const
fonctions statiques publiques
Tout
Attrs Tout( DataType x )