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
)