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