تدفق التوتر:: العمليات:: معقد

#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:: ops:: Complex:: Attrs

محددات السمات الاختيارية للمجمع .

الصفات العامة

عملية

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
)