זרימת טנזור:: פעולות:: מורכבת

#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

קובעי מאפיינים אופציונליים עבור 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
)