テンソルフロー::作戦::サイズ変更最近隣

#include <image_ops.h>

最近傍補間を使用してimages sizeを変更します。

まとめ

引数:

  • スコープ:スコープオブジェクト
  • 画像: 形状[batch, height, width, channels]を持つ 4-D。
  • size: = 2 つの要素の 1 次元 int32テンソル: new_height, new_width 。画像の新しいサイズ。

オプションの属性 ( Attrsを参照):

  • align_corners: true の場合、入力テンソルと出力テンソルの 4 つのコーナー ピクセルの中心が位置合わせされ、コーナー ピクセルの値が維持されます。デフォルトは false です。

戻り値:

  • Output : 形状[batch, new_height, new_width, channels]の 4-D。

コンストラクターとデストラクター

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)

パブリック属性

operation
resized_images

公共機能

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

パブリック静的関数

AlignCorners (bool x)
HalfPixelCenters (bool x)

構造体

tensorflow:: ops:: ResizeNearestNeighbor:: Attrs

ResizeNearestNeighborのオプションの属性セッター。

パブリック属性

手術

Operation operation

サイズ変更された画像

::tensorflow::Output resized_images

公共機能

サイズ変更最近隣

 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
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

コーナーを揃える

Attrs AlignCorners(
  bool x
)

ハーフピクセルセンター

Attrs HalfPixelCenters(
  bool x
)