aliran tensor:: operasi:: Kompleks

#include <math_ops.h>

Mengonversi dua bilangan real menjadi bilangan kompleks.

Ringkasan

Diberikan tensor real yang mewakili bagian real dari bilangan kompleks, dan imag tensor yang mewakili bagian imajiner dari bilangan kompleks, operasi ini mengembalikan bilangan kompleks berdasarkan elemen dalam bentuk \(a + bj\), dengan a mewakili bagian real dan b mewakili imag bagian.

Tensor masukan real dan imag harus mempunyai bentuk yang sama.

Misalnya:

# 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:

Pengembalian:

Konstruktor dan Destruktor

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)

Struktur

tensorflow:: ops:: Kompleks:: Attrs

Penyetel atribut opsional untuk Complex .

Atribut publik

operasi

Operation operation

keluar

::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::Masukan

 operator::tensorflow::Input() const 

operator::tensorflow::Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

Mengintip

Attrs Tout(
  DataType x
)