tensorflow::ops::QuantizedResizeBilinear
#include <image_ops.h> Ubah ukuran images terkuantisasi ke size menggunakan interpolasi bilinear terkuantisasi.
Ringkasan
Gambar masukan dan gambar keluaran harus berupa tipe terkuantisasi.
Argumen:
- Cakupan: Objek Cakupan
- gambar: 4-D dengan bentuk
[batch, height, width, channels]. - ukuran: = Tensor int32 1-D dengan 2 elemen:
new_height, new_width. Ukuran baru untuk gambar.
Atribut opsional (lihat Attrs ):
- align_corners: Jika bernilai true, pusat dari 4 piksel sudut tensor input dan output akan disejajarkan, dengan mempertahankan nilai pada piksel sudut. Nilai defaultnya adalah false.
Mengembalikan:
-
Outputresized_images: 4-D dengan bentuk[batch, new_height, new_width, channels]. -
Outputout_min -
Outputout_max
Konstruktor dan Destruktor | |
|---|---|
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) |
Atribut publik | |
|---|---|
operation | |
out_max | |
out_min | |
resized_images | |
Fungsi statis publik | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
Struktur | |
|---|---|
| tensorflow::ops::QuantizedResizeBilinear::Attrs | Pengaturan atribut opsional untuk QuantizedResizeBilinear . |
Atribut publik
operasi
Operation operation
keluar_maksimum
::tensorflow::Output out_max
keluar_min
::tensorflow::Output out_min
gambar_yang_diubah_ukurannya
::tensorflow::Output resized_images
Fungsi publik
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 )
Fungsi statis publik
Sejajarkan Sudut
Attrs AlignCorners( bool x )
Pusat Setengah Piksel
Attrs HalfPixelCenters( bool x )