tensorflow::ops::Angle
#include <math_ops.h>
Возвращает аргумент комплексного числа.
Краткое описание
Принимая тензор input комплексных чисел, данная операция возвращает тензор типа float, который представляет собой аргумент каждого элемента в input. Все элементы в input должны быть комплексными числами вида \(a + bj\), где a — действительная часть, а b — мнимая часть.
Аргумент, возвращаемый этой операцией, имеет вид \(atan2(b, a)\).
Например:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.math.angle(input) ==> [2.0132, 1.056]
(numpy) Эквивалентно np.angle.
Аргументы:
- scope: Объект Scope
Возвращает:
-
Output: Результирующий тензор.
| Конструкторы и деструкторы | |
|---|---|
Angle(const ::tensorflow::Scope & scope, ::tensorflow::Input input) | |
Angle(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Angle::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Tout(DataType x) | |
| Структуры | |
|---|---|
| tensorflow::ops::Angle::Attrs | Дополнительные настройки для Angle. |
Публичные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Публичные функции
Angle
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Angle
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Angle::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
Tout
Attrs Tout( DataType x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/angle