تدفق التوتر:: العمليات:: زاوية

#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.

الحجج:

عائدات:

  • 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:: Angle:: Attrs

محددات السمة الاختيارية للزاوية .

الصفات العامة

عملية

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
)