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