Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: Yeniden Boyutlandır

#include <image_ops.h>

En yakın komşu enterpolasyonunu kullanarak images size boyutlandırın.

Özet

Argümanlar:

  • kapsam: Bir Scope nesnesi
  • görüntüler: 4-D şekilli [batch, height, width, channels] .
  • boyutu: = int32 bir 1-D Tensörünün 2 elemanlarının: new_height, new_width . Görüntüler için yeni boyut.

İsteğe bağlı özellikler (bkz. Attrs ):

  • align_corners: true ise, giriş ve çıkış tensörlerinin 4 köşe pikselinin merkezleri, köşe piksellerindeki değerler korunarak hizalanır. Varsayılan olarak yanlıştır.

İadeler:

  • Output : 4 boyutlu [batch, new_height, new_width, channels] .

Yapıcılar ve Yıkıcılar

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

Genel özellikler

operation
resized_images

Kamusal işlevler

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

Genel statik işlevler

AlignCorners (bool x)
HalfPixelCenters (bool x)

Yapılar

tensorflow :: ops :: ResizeNearestNeighbor :: Attrs

ResizeNearestNeighbor için isteğe bağlı öznitelik ayarlayıcıları.

Genel özellikler

operasyon

Operation operation

resized_images

::tensorflow::Output resized_images

Kamusal işlevler

Yeniden Boyutlandır

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

Yeniden Boyutlandır

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

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const 

Genel statik işlevler

AlignCorners

Attrs AlignCorners(
  bool x
)

HalfPixelCenterlar

Attrs HalfPixelCenters(
  bool x
)