tensorflow :: ops :: Kąt
#include <math_ops.h>
Zwraca argument liczby zespolonej.
streszczenie
Biorąc pod uwagę tensorowe input
liczb zespolonych, ta operacja zwraca tensor typu float
który jest argumentem każdego elementu w input
. Wszystkie elementy input
muszą być liczbami zespolonymi w postaci \(a + bj\), gdzie a jest częścią rzeczywistą, a b jest częścią urojoną.
Argument zwrócony przez tę operację ma postać \(atan2(b, a)\).
Na przykład:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.angle(input) ==> [2.0132, 1.056]
(numpy) Odpowiednik np.angle.
Argumenty:
- zakres: obiekt Scope
Zwroty:
-
Output
: tensor wyjściowy.
Konstruktorzy i niszczyciele | |
---|---|
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Angle::Attrs & attrs) |
Atrybuty publiczne | |
---|---|
operation | |
output |
Funkcje publiczne | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Publiczne funkcje statyczne | |
---|---|
Tout (DataType x) |
Struktury | |
---|---|
tensorflow :: ops :: Angle :: Attrs | Opcjonalne metody ustawiające atrybuty dla kąta . |
Atrybuty publiczne
operacja
Operation operation
wynik
::tensorflow::Output output
Funkcje publiczne
Kąt
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Kąt
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Angle::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 )