เทนเซอร์โฟลว์:: ออปส์:: อิมเมจ
#include <math_ops.h>ส่งคืนค่าส่วนจินตนาการของจำนวนเชิงซ้อน
สรุป
เมื่อรับ input เป็นเทนเซอร์ของจำนวนเชิงซ้อน การดำเนินการนี้จะส่งคืนเทนเซอร์ชนิด float ซึ่งเป็นส่วนจินตนาการของแต่ละองค์ประกอบใน input องค์ประกอบ ทั้งหมด ใน input ต้องเป็นจำนวนเชิงซ้อนในรูปแบบที่กำหนด \(a + bj\)โดยที่ a คือส่วนจริง และ b คือส่วนจินตนาการที่ได้จากการดำเนินการนี้
ตัวอย่างเช่น:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] tf.imag(input) ==> [4.75, 5.75]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
การส่งคืนสินค้า:
-
Output: เทนเซอร์เอาต์พุต
ตัวสร้างและตัวทำลาย | |
|---|---|
Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
Imag (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const Imag::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Tout (DataType x) | |
โครงสร้าง | |
|---|---|
| tensorflow:: ops:: Imag:: Attrs | ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ Imag |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
ภาพ
Imag( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
ภาพ
Imag( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Imag::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
เอาท์
Attrs Tout( DataType x )