tensorflow::ops::ComplexAbs
#include <math_ops.h>
Вычисляет комплексное абсолютное значение тензора.
Краткое описание
Принимая тензор x комплексных чисел, данная операция возвращает тензор типа float или double, являющийся абсолютным значением каждого элемента в x. Все элементы в x должны быть комплексными числами вида \(a + bj\). Абсолютное значение вычисляется как \( \sqrt{a^2 + b^2}\).
Например:
x = tf.complex(3.0, 4.0) print((tf.raw_ops.ComplexAbs(x=x, Tout=tf.dtypes.float32, name=None)).numpy()) 5.0
Args:
- scope: Объект Scope
Returns:
-
Output: Тензор y.
| Конструкторы и деструкторы | |
|---|---|
ComplexAbs(const ::tensorflow::Scope & scope, ::tensorflow::Input x) | |
ComplexAbs(const ::tensorflow::Scope & scope, ::tensorflow::Input x, const ComplexAbs::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
y | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
Tout(DataType x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ComplexAbs::Attrs | Дополнительные методы установки атрибутов для ComplexAbs. |
Общедоступные атрибуты
operation
Operation operation
y
::tensorflow::Output y
Общедоступные функции
ComplexAbs
ComplexAbs( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
ComplexAbs
ComplexAbs( const ::tensorflow::Scope & scope, ::tensorflow::Input x, const ComplexAbs::Attrs & attrs )
узел
::tensorflow::Node * node() const
оператор::tensorflow::Входной
operator::tensorflow::Input() const
оператор::tensorflow::Выход
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/complex-abs