tensorflow :: ops :: Ubah ukuranBilinear

#include <image_ops.h>

Ubah ukuran images menjadi size menggunakan interpolasi bilinear.

Ringkasan

Gambar masukan bisa dari jenis yang berbeda tetapi gambar keluaran selalu mengambang.

Argumen:

  • scope: Objek Scope
  • gambar: 4-D dengan bentuk [batch, height, width, channels] .
  • size: = A 1-D int32 Tensor dari 2 elemen: new_height, new_width . Ukuran baru untuk gambar.

Atribut opsional (lihat Attrs ):

  • align_corners: Jika true, pusat 4 piksel sudut dari tensor input dan output disejajarkan, mempertahankan nilai di piksel sudut. Default-nya adalah false.

Pengembalian:

  • Output : 4-D dengan bentuk [batch, new_height, new_width, channels] .

Pembuat dan Penghancur

ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size)
ResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeBilinear::Attrs & attrs)

Atribut publik

operation
resized_images

Fungsi publik

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Fungsi statis publik

AlignCorners (bool x)
HalfPixelCenters (bool x)

Structs

tensorflow :: ops :: ResizeBilinear :: Attrs

Penyetel atribut opsional untuk ResizeBilinear .

Atribut publik

operasi

Operation operation

resized_images

::tensorflow::Output resized_images

Fungsi publik

Ubah ukuranBilinear

 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size
)

Ubah ukuranBilinear

 ResizeBilinear(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images,
  ::tensorflow::Input size,
  const ResizeBilinear::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

AlignCorners

Attrs AlignCorners(
  bool x
)

HalfPixelCenters

Attrs HalfPixelCenters(
  bool x
)