เทนเซอร์โฟลว์:: ออปส์:: แองเกิล
#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() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
เอาท์
Attrs Tout( DataType x )