tensorflow:: ops:: ExtractImagePatches
#include <array_ops.h> imagesからpatchesを抽出し、「深度」出力次元に格納します。
まとめ
議論:
- スコープ:スコープオブジェクト
- 画像: 形状が
[batch, in_rows, in_cols, depth]の 4 次元テンソル。 - ksizes:
imagesの各次元におけるスライディングウィンドウのサイズ。 - ストライド: 画像内で連続する 2 つのパッチの中心間の距離。次の形式である必要があります:
[1, stride_rows, stride_cols, 1]。 - rates: 必須:
[1, rate_rows, rate_cols, 1]。これは入力ストライドであり、入力内の連続する 2 つのパッチ サンプルがどれだけ離れているかを指定します。patch_sizes_effpatch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1)でパッチを抽出し、その後、ratesの係数で空間的にサブサンプリングすることと同等です。これは、拡張畳み込み (別名 Atrous) のrateと同等です。 - padding: 使用するパディングアルゴリズムの種類。
返品:
-
Output:形状が[batch, out_rows, out_cols, ksize_rows * ksize_cols * depth]の 4 次元テンソル。ksize_rowsksize_rows x ksize_cols x depthのサイズの画像パッチが「depth」次元でベクトル化されて格納されます。out_rows とout_rowsout_cols出力パッチの次元です。
コンストラクターとデストラクタ | |
|---|---|
ExtractImagePatches (const :: tensorflow::Scope & scope, :: tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding) |
公開属性 | |
|---|---|
operation | |
patches | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
公開属性
手術
Operation operation
パッチ
::tensorflow::Output patches
公的機能
イメージパッチの抽出
ExtractImagePatches( const ::tensorflow::Scope & scope, ::tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const