เทนเซอร์โฟลว์::ออปส์::ไดเลชัน2D
#include <nn_ops.h> คำนวณการขยายระดับสีเทาของ input 4 มิติและเทนเซอร์ filter 3 มิติ
สรุป
เทนเซอร์ input มีรูปร่าง [batch, in_height, in_width, depth] และเทนเซอร์ filter มีรูปร่าง [filter_height, filter_width, depth] กล่าวคือ แต่ละช่องสัญญาณอินพุตจะถูกประมวลผลอย่างอิสระจากช่องสัญญาณอื่น ๆ ด้วยฟังก์ชันโครงสร้างของตัวเอง เทนเซอร์ output มีรูปร่าง [batch, out_height, out_width, depth] มิติเชิงพื้นที่ของเทนเซอร์เอาต์พุตขึ้นอยู่กับอัลกอริทึม padding ปัจจุบันเรารองรับเฉพาะ data_format "NHWC" เริ่มต้นเท่านั้น
โดยละเอียด การขยายภาพ 2 มิติเชิงสัณฐานวิทยาแบบระดับสีเทาคือค่าสหสัมพันธ์ผลรวมสูงสุด (เพื่อให้สอดคล้องกับ conv2d เราจึงใช้ตัวกรองที่ไม่สะท้อน):
output[b, y, x, c] =
max_{dy, dx} input[b,
strides[1] * y + rates[1] * dy,
strides[2] * x + rates[2] * dx,
c] +
filter[dy, dx, c]Max-pooling เป็นกรณีพิเศษเมื่อตัวกรองมีขนาดเท่ากับขนาดของเคอร์เนลพูลลิ่งและประกอบด้วยค่าศูนย์ทั้งหมด
หมายเหตุเกี่ยวกับความเป็นคู่: การขยายสัญญาณ input โดย filter นั้นเท่ากับการปฏิเสธการกัดเซาะ -input โดย filter สะท้อน
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- อินพุต: 4 มิติ ที่มีรูปร่าง
[batch, in_height, in_width, depth] - ตัวกรอง: 3 มิติ ที่มีรูปร่าง
[filter_height, filter_width, depth] - strides: ระยะก้าวของหน้าต่างเลื่อนสำหรับแต่ละมิติของเทนเซอร์อินพุต ต้องเป็น:
[1, stride_height, stride_width, 1] - อัตรา: ระยะก้าวสำหรับการขยายตัวทางสัณฐานวิทยาของ atrous ต้องเป็น:
[1, rate_height, rate_width, 1] - การเติมช่องว่าง: ประเภทของอัลกอริทึมการเติมช่องว่างที่จะใช้
การส่งคืนสินค้า:
-
Output: 4 มิติ ที่มีรูปร่าง[batch, out_height, out_width, depth]
ตัวสร้างและตัวทำลาย | |
|---|---|
Dilation2D (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
ไดเลชั่น2D
Dilation2D( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const