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