เทนเซอร์โฟลว์:: ปฏิบัติการ:: MaxPoolWithArgmax
#include <nn_ops.h>ดำเนินการรวมค่าสูงสุดกับอินพุตและเอาต์พุตทั้งค่าสูงสุดและดัชนี
สรุป
ดัชนีใน argmax ถูกทำให้ราบเรียบ ดังนั้นค่าสูงสุดที่ตำแหน่ง [b, y, x, c] จะกลายเป็นดัชนีที่ราบเรียบ: (y * width + x) * channels + c ถ้า include_batch_in_index เป็นเท็จ; ((b * height + y) * width + x) * channels + c ถ้า include_batch_in_index เป็น True
ดัชนีที่ส่งคืนจะอยู่ใน [0, height) x [0, width) เสมอก่อนที่จะทำให้แบน แม้ว่าจะเกี่ยวข้องกับการเติมและคำตอบที่ถูกต้องทางคณิตศาสตร์อยู่ด้านนอก (อาจเป็นลบหรือใหญ่เกินไป) นี่เป็นจุดบกพร่อง แต่การแก้ไขนั้นทำได้ยากด้วยวิธีที่เข้ากันได้แบบย้อนหลังอย่างปลอดภัย โดยเฉพาะอย่างยิ่งเนื่องจากการแบน
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- อินพุต: 4-D ที่มีรูปร่าง
[batch, height, width, channels]ป้อนข้อมูล ไปยังพูลมากกว่า - ksize: ขนาดของหน้าต่างสำหรับแต่ละมิติของเทนเซอร์อินพุต
- ความก้าวหน้า: ก้าวของหน้าต่างบานเลื่อนสำหรับแต่ละมิติของเทนเซอร์อินพุต
- padding: ประเภทของอัลกอริธึมการเติมที่จะใช้
แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
- include_batch_in_index: ว่าจะรวมมิติข้อมูลแบทช์ในดัชนีที่ราบเรียบของ
argmaxหรือไม่
ผลตอบแทน:
- เอาท์พุต
Output: เทนเซอร์เอาท์พุตพูลสูงสุด -
Outputสูงสุด: 4-D ดัชนีแบบแบนของค่าสูงสุดที่เลือกสำหรับแต่ละเอาต์พุต
ตัวสร้างและผู้ทำลาย | |
|---|---|
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding) | |
MaxPoolWithArgmax (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
argmax | |
operation | |
output | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
IncludeBatchInIndex (bool x) | |
Targmax (DataType x) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: MaxPoolWithArgmax :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ MaxPoolWithArgmax |
คุณลักษณะสาธารณะ
อาร์กแม็กซ์
::tensorflow::Output argmax
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output output
งานสาธารณะ
MaxPoolWithArgmax
MaxPoolWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding )
MaxPoolWithArgmax
MaxPoolWithArgmax( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< int > & ksize, const gtl::ArraySlice< int > & strides, StringPiece padding, const MaxPoolWithArgmax::Attrs & attrs )
ฟังก์ชันคงที่สาธารณะ
รวม BatchInIndex
Attrs IncludeBatchInIndex( bool x )
ทาร์กแม็กซ์
Attrs Targmax( DataType x )