เทนเซอร์โฟลว์:: ปฏิบัติการ:: จินตนาการ

#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)

โครงสร้าง

เทนเซอร์โฟลว์ :: 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 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

โน้มน้าว

Attrs Tout(
  DataType x
)