tensorflow:: אופס:: מוּרכָּב
#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]]
טיעונים:
- scope: אובייקט Scope
החזרות:
-
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) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
tensorflow:: ops:: מורכב:: 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 )