przepływ tensorowy:: ops:: Zmień rozmiarDwuliniowy

#include <image_ops.h>

Zmień size images , używając interpolacji dwuliniowej.

Streszczenie

Obrazy wejściowe mogą być różnych typów, ale obrazy wyjściowe są zawsze pływające.

Argumenty:

  • zakres: Obiekt Scope
  • obrazy: 4-D z kształtem [batch, height, width, channels] .
  • size: = A 1-D int32 Tensor dwóch elementów: new_height, new_width . Nowy rozmiar obrazów.

Opcjonalne atrybuty (patrz Attrs ):

  • wyrównanie_corners: Jeśli ma wartość true, środki 4 pikseli narożnych tensorów wejściowych i wyjściowych są wyrównywane, zachowując wartości w pikselach narożnych. Domyślnie jest to fałsz.

Zwroty:

  • Output : 4-D z kształtem [batch, new_height, new_width, channels] .

Konstruktory i destruktory

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)

Atrybuty publiczne

operation
resized_images

Funkcje publiczne

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

Publiczne funkcje statyczne

AlignCorners (bool x)
HalfPixelCenters (bool x)

Struktury

tensorflow:: ops:: Zmień rozmiarBilinear:: Atrybuty

Opcjonalne moduły ustawiające atrybuty dla ResizeBilinear .

Atrybuty publiczne

operacja

Operation operation

obrazy o zmienionym rozmiarze

::tensorflow::Output resized_images

Funkcje publiczne

Zmień rozmiarDwuliniowy

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

Zmień rozmiarDwuliniowy

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

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Wejście

 operator::tensorflow::Input() const 

operator::tensorflow::Wyjście

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Wyrównaj narożniki

Attrs AlignCorners(
  bool x
)

Centra HalfPixel

Attrs HalfPixelCenters(
  bool x
)