テンソルフロー::作戦::量子化サイズ変更バイリニア
#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 です。
戻り値:
-
Outputresize_images: 形状[batch, new_height, new_width, channels]の 4-D。 -
Outputout_min -
Outputout_max
コンストラクターとデストラクター | |
|---|---|
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max) | |
QuantizedResizeBilinear (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, :: tensorflow::Input min, :: tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs) |
パブリック属性 | |
|---|---|
operation | |
out_max | |
out_min | |
resized_images | |
パブリック静的関数 | |
|---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) | |
構造体 | |
|---|---|
| tensorflow:: ops:: QuantizedResizeBilinear:: Attrs | QuantizedResizeBilinearのオプションの属性セッター。 |
パブリック属性
手術
Operation operation
アウトマックス
::tensorflow::Output out_max
out_min
::tensorflow::Output out_min
サイズ変更された画像
::tensorflow::Output resized_images
公共機能
量子化サイズ変更バイリニア
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max )
量子化サイズ変更バイリニア
QuantizedResizeBilinear( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, ::tensorflow::Input min, ::tensorflow::Input max, const QuantizedResizeBilinear::Attrs & attrs )
パブリック静的関数
コーナーを揃える
Attrs AlignCorners( bool x )
ハーフピクセルセンター
Attrs HalfPixelCenters( bool x )