tensorflow::ops::QuantizedResizeBilinear

#include <image_ops.h>

Thay đổi kích size images đã lượng tử hóa bằng phương pháp nội suy song tuyến lượng tử hóa.

Bản tóm tắt

Ảnh đầu vào và ảnh đầu ra phải thuộc loại ảnh đã được lượng tử hóa.

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • Hình ảnh: 4 chiều với hình dạng [batch, height, width, channels] .
  • kích thước: = Một Tensor 1 chiều int32 gồm 2 phần tử: new_height, new_width . Kích thước mới cho hình ảnh.

Các thuộc tính tùy chọn (xem Attrs ):

  • align_corners: Nếu là true, tâm của 4 pixel góc của tensor đầu vào và đầu ra sẽ được căn chỉnh, giữ nguyên giá trị tại các pixel góc. Mặc định là false.

Trả về:

  • Output ảnh đã thay đổi kích thước: 4 chiều với hình dạng [batch, new_height, new_width, channels] .
  • Output out_min
  • Output tối đa

Hàm khởi tạo và hàm hủy

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)

Thuộc tính công khai

operation
out_max
out_min
resized_images

Các hàm tĩnh công khai

AlignCorners (bool x)
HalfPixelCenters (bool x)

Cấu trúc

tensorflow::ops::QuantizedResizeBilinear::Attrs

Các thiết lập thuộc tính tùy chọn cho QuantizedResizeBilinear .

Thuộc tính công khai

hoạt động

Operation operation

out_max

::tensorflow::Output out_max

out_min

::tensorflow::Output out_min

ảnh đã thay đổi kích thước

::tensorflow::Output resized_images

Chức năng công cộng

Lượng tử hóa Thay đổi kích thước Song tuyến tính

 QuantizedResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

Lượng tử hóa Thay đổi kích thước Song tuyến tính

 QuantizedResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const QuantizedResizeBilinear::Attrs & attrs
)

Các hàm tĩnh công khai

Căn chỉnh góc

Attrs AlignCorners(
  bool x
)

HalfPixelCenters

Attrs HalfPixelCenters(
  bool x
)