tensorflow:: عملیات:: پیچیده

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

استدلال‌ها:

بازده:

  • 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:: عملیات:: مجتمع:: جذابیت‌ها

تنظیم‌کننده‌های ویژگی اختیاری برای Complex .

ویژگی‌های عمومی

عملیات

Operation operation

بیرون

::tensorflow::Output out

کارکردهای عمومی

مجتمع

 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
)

گره

::tensorflow::Node * node() const 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

توت

Attrs Tout(
  DataType x
)