tensorflow :: ops :: Kompleks
#include <math_ops.h>
Mengonversi dua bilangan real menjadi bilangan kompleks.
Ringkasan
Diketahui tensor real
mewakili bagian nyata dari bilangan kompleks, dan imag
tensor mewakili bagian imajiner dari bilangan kompleks, operasi ini mengembalikan bilangan kompleks dengan elemen bentuk \(a + bj\), di mana a mewakili bagian real
dan b mewakili bagian imag
.
Tensor masukan real
dan imag
harus memiliki bentuk yang sama.
Sebagai contoh:
# 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]]
Argumen:
- scope: Objek Scope
Pengembalian:
-
Output
: Tensor keluar.
Pembuat dan Penghancur | |
---|---|
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) |
Atribut publik | |
---|---|
operation | |
out |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Tout (DataType x) |
Structs | |
---|---|
tensorflow :: ops :: Complex :: Attrs | Penyetel atribut opsional untuk Kompleks . |
Atribut publik
operasi
Operation operation
di luar
::tensorflow::Output out
Fungsi publik
Kompleks
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag )
Kompleks
Complex( const ::tensorflow::Scope & scope, ::tensorflow::Input real, ::tensorflow::Input imag, const Complex::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Mengintip
Attrs Tout( DataType x )