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.real(input) ==> [-2.25, 3.25]

טיעונים:

  • scope: אובייקט Scope

החזרות:

  • Output : טנזור הפלט.

בנאים והורסים

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

תכונות ציבוריות

operation
output

תפקידים ציבוריים

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

פונקציות סטטיות ציבוריות

Tout (DataType x)

מבנים

tensorflow:: ops:: אמיתי:: Attrs

קובעי תכונות אופציונליים עבור Real .

תכונות ציבוריות

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

תפקידים ציבוריים

אמיתי

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

אמיתי

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

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

לְסַפְסֵר

Attrs Tout(
  DataType x
)