tensorflow :: ops :: Dilation2D
#include <nn_ops.h>
4D input
と3D filter
テンソルのグレースケール膨張を計算します。
概要
input
テンソルの形状は[batch, in_height, in_width, depth]
で、 filter
テンソルの形状は[filter_height, filter_width, depth]
。つまり、各入力チャネルは、独自の構造化関数を使用して他のチャネルとは独立して処理されます。 output
テンソルの形状は[batch, out_height, out_width, depth]
です。出力テンソルの空間次元は、 padding
アルゴリズムによって異なります。現在、デフォルトの「NHWC」 data_format
のみをサポートしています。
詳細には、グレースケールの形態学的2D膨張は、最大合計相関です( conv2d
との整合性のために、 conv2d
されていないフィルターを使用します):
output[b, y, x, c] = max_{dy, dx} input[b, strides[1] * y + rates[1] * dy, strides[2] * x + rates[2] * dx, c] + filter[dy, dx, c]
最大プーリングは、フィルターのサイズがプーリングカーネルのサイズと等しく、すべてゼロが含まれている場合の特殊なケースです。
二重性に注意:の拡張input
によるfilter
の浸食の否定に等しい-input
反射によってfilter
。
引数:
- スコープ:スコープオブジェクト
- 入力:形状
[batch, in_height, in_width, depth]
。 - フィルタ:形状
[filter_height, filter_width, depth]
。 - ストライド:入力テンソルの各次元のスライディングウィンドウのストライド。
[1, stride_height, stride_width, 1]
必要があります。 - 率:激しい形態学的拡張のための入力ストライド。
[1, rate_height, rate_width, 1]
必要があります。 - パディング:使用するパディングアルゴリズムのタイプ。
戻り値:
-
Output
:形状[batch, out_height, out_width, depth]
。
コンストラクタとデストラクタ | |
---|---|
Dilation2D (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input filter, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding) |
パブリック属性 | |
---|---|
operation | |
output |
公の行事 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
パブリック属性
操作
Operation operation
出力
::tensorflow::Output output
公の行事
Dilation2D
Dilation2D( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input filter, 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