tensorflow::ops::Complex
#include <math_ops.h>
Преобразует две вещественные числа в комплексное число.
Краткое описание
Учитывая тензор real , представляющий вещественную часть комплексного числа, и тензор imag , представляющий мнимую часть комплексного числа, данная операция возвращает комплексные числа поэлементно вида \(a + bj\), где a представляет real часть, а b представляет imag часть.
Входные тензоры real и imag должны иметь одинаковую форму.
Например:
# tensor 'real' is [2.25, 3.25] # tensor `imag` is [4.75, 5.75] tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]]
Аргументы:
- scope: Объект Scope
Возвращаемое значение:
-
Output: Тензор вывода.
| Конструкторы и деструкторы | |
|---|---|
Complex(const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag) | |
Complex(const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
out | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
Tout(DataType x) | |
| Структуры | |
|---|---|
| tensorflow::ops::Complex::Attrs | Необязательные параметры для установки атрибутов Complex. |
Общедоступные атрибуты
operation
Operation operation
out
::tensorflow::Output out
Общедоступные функции
Complex
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Complex
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::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/versions/r2.9/api_docs/cc/class/tensorflow/ops/complex