เทนเซอร์โฟลว์ :: ops :: Abs
#include <math_ops.h>
คำนวณค่าสัมบูรณ์ของเทนเซอร์
สรุป
เมื่อพิจารณาจากค่าเทนเซอร์ x
การดำเนินการนี้จะส่งกลับค่าเทนเซอร์ที่มีค่าสัมบูรณ์ของแต่ละองค์ประกอบใน x
ตัวอย่างเช่นถ้า x เป็นองค์ประกอบอินพุตและ y เป็นองค์ประกอบเอาต์พุตการดำเนินการนี้จะคำนวณ \(y = |x|\)
อาร์กิวเมนต์:
- ขอบเขต: วัตถุ ขอบเขต
ผลตอบแทน:
-
Output
: เทนเซอร์ y
ผู้สร้างและผู้ทำลาย | |
---|---|
Abs (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
คุณลักษณะสาธารณะ | |
---|---|
operation | |
y |
หน้าที่สาธารณะ | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ย
::tensorflow::Output y
หน้าที่สาธารณะ
Abs
Abs( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ :: tensorflow :: อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ :: tensorflow :: เอาต์พุต
operator::tensorflow::Output() const