tensorflow:: ops:: Angle

#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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

توت

Attrs Tout(
  DataType x
)