tensorflow:: ops:: Angle
#include <math_ops.h>Restituisce l'argomento di un numero complesso.
Riepilogo
Dato un tensore di numeri complessi input , questa operazione restituisce un tensore di tipo float che è l'argomento di ogni elemento in input . Tutti gli elementi in input devono essere numeri complessi della forma \(a + bj\), dove a è la parte reale e b è la parte immaginaria.
L'argomento restituito da questa operazione è della forma \(atan2(b, a)\).
Per esempio:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.angle(input) ==> [2.0132, 1.056]
(numpy) Equivalente a np.angle.
Argomentazioni:
- ambito: un oggetto Scope
Resi:
-
Output: Il tensore di output.
Costruttori e distruttori | |
|---|---|
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Angle::Attrs & attrs) |
attributi pubblici | |
|---|---|
operation | |
output | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
Tout (DataType x) | |
Strutture | |
|---|---|
| tensorflow::ops::Angle::Attrs | Impostatori di attributi opzionali per Angolo . |
attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
Angolo
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Angolo
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Angle::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 )