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

#include <math_ops.h>

إرجاع الجزء التخيلي من عدد مركب.

ملخص

بالنظر إلى input موتر من الأعداد المركبة، تُرجع هذه العملية موترًا من النوع float وهو الجزء التخيلي من كل عنصر في input . يجب أن تكون جميع العناصر input أرقامًا مركبة من النموذج \(a + bj\)، حيث a هو الجزء الحقيقي و b هو الجزء التخيلي الذي يتم إرجاعه بواسطة هذه العملية.

على سبيل المثال:

# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.imag(input) ==> [4.75, 5.75]

الحجج:

عائدات:

  • Output : موتر الإخراج.

البنائين والمدمرين

Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Imag::Attrs & attrs)

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

operation
output

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

وظائف ثابتة العامة

Tout (DataType x)

الهياكل

Tensorflow:: ops:: Imag:: Attrs

محددات السمات الاختيارية لـ Imag .

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

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

صورة

 Imag(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

صورة

 Imag(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Imag::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

توت

Attrs Tout(
  DataType x
)