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