نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: زاوية

#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 :: العمليات :: 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 :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

توت

Attrs Tout(
  DataType x
)