tensorflow::ops::Angle
#include <math_ops.h>
Возвращает аргумент комплексного числа.
Summary
Принимая тензор input комплексных чисел, данная операция возвращает тензор типа float, являющийся аргументом каждого элемента в input. Все элементы в input должны быть комплексными числами вида \(a + bj\), где a — действительная часть, а b — мнимая часть.
Аргумент, возвращаемый этой операцией, имеет вид \(atan2(b, a)\).
Например:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.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 )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/angle