เทนเซอร์โฟลว์:: ปฏิบัติการ:: มุม
#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]
(ตัวเลข) เทียบเท่ากับ 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) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: 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 )