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