เทนเซอร์โฟลว์:: ปฏิบัติการ:: QuantizedResizeBilinear

#include <image_ops.h>

ปรับขนาด images เชิงปริมาณให้เป็น size โดยใช้การประมาณค่าแบบไบลิเนียร์แบบเชิงปริมาณ

สรุป

รูปภาพ อินพุต และรูปภาพเอาต์พุตต้องเป็นประเภทปริมาณ

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ภาพ: 4-D พร้อมรูปทรง [batch, height, width, channels] .
  • ขนาด: = A 1-D int32 เทนเซอร์ ของ 2 องค์ประกอบ: new_height, new_width ขนาดใหม่สำหรับภาพ

แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):

  • align_corners: หากเป็นจริง จุดกึ่งกลางของพิกเซลมุมทั้ง 4 ของเทนเซอร์อินพุตและเอาท์พุตจะตรงกัน โดยคงค่าไว้ที่พิกเซลมุม ค่าเริ่มต้นเป็นเท็จ

ผลตอบแทน:

  • Output resize_images: 4-D ที่มีรูปร่าง [batch, new_height, new_width, channels]
  • Output เอาท์_นาที
  • Output ท์_แม็กซ์

ตัวสร้างและผู้ทำลาย

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)

โครงสร้าง

เทนเซอร์โฟลว์ :: 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
)