tensorflow:: אופס:: זָוִית
#include <math_ops.h>
מחזירה את הארגומנט של מספר מרוכב.
תַקצִיר
בהינתן input
טנזור של מספרים מרוכבים, פעולה זו מחזירה טנזור מסוג float
שהוא הארגומנט של כל אלמנט input
. כל האלמנטים input
חייבים להיות מספרים מרוכבים של הטופס \(a + bj\), כאשר a הוא החלק האמיתי ו- b הוא החלק הדמיוני.
הארגומנט המוחזר על ידי פעולה זו הוא בצורה \(atan2(b, a)\).
לְדוּגמָה:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.angle(input) ==> [2.0132, 1.056]
(numpy) שווה ערך ל np.angle.
טיעונים:
- scope: אובייקט Scope
החזרות:
-
Output
: טנזור הפלט.
בנאים והורסים | |
---|---|
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Angle (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Angle::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Tout (DataType x) |
מבנים | |
---|---|
tensorflow:: ops:: זווית:: Attrs | קובעי תכונות אופציונליים עבור Angle . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
זָוִית
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
זָוִית
Angle( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Angle::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
לְסַפְסֵר
Attrs Tout( DataType x )