tensorflow::ops::QuantizedResizeBilinear
#include <image_ops.h> ปรับขนาด images ควอนไทซ์ให้ได้ size ที่ต้องการโดยใช้การประมาณค่าเชิงเส้นคู่แบบควอนไทซ์ (quantized bilinear interpolation)
สรุป
ภาพ อินพุต และภาพเอาต์พุตต้องเป็นประเภทควอนไทซ์
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- ภาพ: 4 มิติ พร้อมรูปทรง
[batch, height, width, channels] - ขนาด: = เทนเซอร์ int32 แบบ 1 มิติ ประกอบด้วย 2 องค์ประกอบ:
new_height, new_widthขนาดใหม่สำหรับรูปภาพ
คุณลักษณะเสริม (ดูที่ Attrs ):
- align_corners: หากตั้งค่าเป็น true จุดศูนย์กลางของพิกเซลทั้ง 4 มุมของเทนเซอร์อินพุตและเอาต์พุตจะถูกจัดเรียงให้ตรงกัน โดยคงค่าที่พิกเซลมุมไว้ ค่าเริ่มต้นคือ false
การส่งคืนสินค้า:
-
Outputภาพที่ปรับขนาดแล้ว: 4 มิติที่มีรูปร่าง[batch, new_height, new_width, channels] -
Outputout_min -
Outputout_max
ตัวสร้างและตัวทำลาย | |
|---|---|
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max) | |
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
out_max | |
out_min | |
resized_images | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::QuantizedResizeBilinear::Attrs | ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ QuantizedResizeBilinear |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์แม็กซ์
::tensorflow::Output out_max
เอาท์มิน
::tensorflow::Output out_min
ภาพที่ปรับขนาดแล้ว
::tensorflow::Output resized_images
หน้าที่สาธารณะ
QuantizedResizeBilinear
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max )
QuantizedResizeBilinear
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs )
ฟังก์ชันคงที่สาธารณะ
จัดแนวมุม
Attrs AlignCorners( bool x )
ศูนย์กลางครึ่งพิกเซล
Attrs HalfPixelCenters( bool x )