tensoreflusso:: ops:: RidimensionaVicino più vicino

#include <image_ops.h>

size images utilizzando l'interpolazione del vicino più vicino.

Riepilogo

Argomenti:

  • scope: un oggetto Scope
  • immagini: 4-D con forma [batch, height, width, channels] .
  • size: = A 1-D int32 Tensore di 2 elementi: new_height, new_width . La nuova dimensione per le immagini.

Attributi facoltativi (vedi Attrs ):

  • align_corners: se vero, i centri dei 4 pixel d'angolo dei tensori di input e output sono allineati, preservando i valori nei pixel d'angolo. Il valore predefinito è falso.

Ritorna:

  • Output : 4-D con forma [batch, new_height, new_width, channels] .

Costruttori e distruttori

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)

Attributi pubblici

operation
resized_images

Funzioni pubbliche

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

Funzioni pubbliche statiche

AlignCorners (bool x)
HalfPixelCenters (bool x)

Strutture

tensorflow:: ops:: ResizeNearestNeighbor:: Attrs

Setter di attributi facoltativi per ResizeNearestNeighbor .

Attributi pubblici

operazione

Operation operation

immagini_ridimensionate

::tensorflow::Output resized_images

Funzioni pubbliche

RidimensionaVicino più vicino

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

RidimensionaVicino più vicino

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

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

Allinea angoli

Attrs AlignCorners(
  bool x
)

HalfPixelCenter

Attrs HalfPixelCenters(
  bool x
)