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) |
תכונות ציבוריות | |
---|---|
operation | |
out |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Tout (DataType x) |
מבנים | |
---|---|
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 )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-02 (שעון UTC).
[]
[]