เทนเซอร์โฟลว์:: ปฏิบัติการ:: คอมเพล็กซ์หน้าท้อง

#include <math_ops.h>

คำนวณค่าสัมบูรณ์เชิงซ้อนของเทนเซอร์

สรุป

เมื่อพิจารณาเทนเซอร์ x ของจำนวนเชิงซ้อน การดำเนินการนี้จะส่งคืนเทนเซอร์ประเภท float หรือ double ที่เป็นค่าสัมบูรณ์ของแต่ละองค์ประกอบใน x องค์ประกอบ ทั้งหมด ใน x ต้องเป็นจำนวนเชิงซ้อนในรูปแบบ \(a + bj\)ค่าสัมบูรณ์จะถูกคำนวณเป็น \( {a^2 + b^2}\)

ข้อโต้แย้ง:

ผลตอบแทน:

  • Output : y เทนเซอร์

ตัวสร้างและผู้ทำลาย

ComplexAbs (const :: tensorflow::Scope & scope, :: tensorflow::Input x)
ComplexAbs (const :: tensorflow::Scope & scope, :: tensorflow::Input x, const ComplexAbs::Attrs & attrs)

คุณลักษณะสาธารณะ

operation
y

งานสาธารณะ

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

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

Tout (DataType x)

โครงสร้าง

เทนเซอร์โฟลว์ :: ops :: ComplexAbs :: Attrs

ตัวตั้งค่าคุณลักษณะเสริมสำหรับ ComplexAbs

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

::tensorflow::Output y

งานสาธารณะ

คอมเพล็กซ์หน้าท้อง

 ComplexAbs(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

คอมเพล็กซ์หน้าท้อง

 ComplexAbs(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  const ComplexAbs::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

โน้มน้าว

Attrs Tout(
  DataType x
)