tensorflow:: אופס:: תמונה

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

טיעונים:

  • scope: אובייקט Scope

החזרות:

  • 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:: תמונה:: 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
)