tensorflow:: ops:: Dilation2D
#include <nn_ops.h> 4次元inputと3次元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のみをサポートしています。
詳細には、グレースケール形態学的2次元膨張は最大和相関です( 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]最大プーリングは、フィルタのサイズがプーリングカーネルのサイズと等しく、フィルタ内のすべての要素がゼロである場合の特殊なケースです。
双対性に関する注記: filterによるinputの膨張は、反射filterによる-inputの収縮の否定に等しい。
議論:
- スコープ:スコープオブジェクト
- 入力: 形状
[batch, in_height, in_width, depth]の 4 次元。 - フィルター: 形状
[filter_height, filter_width, depth]の 3D フィルター。 - strides: 入力テンソルの各次元に対するスライディングウィンドウのストライド。次の形式である必要があります:
[1, stride_height, stride_width, 1]。 - rates: アトロアス形態学的膨張の入力ストライド。次の形式である必要があります:
[1, rate_height, rate_width, 1]。 - padding: 使用するパディングアルゴリズムの種類。
返品:
-
Output:形状[batch, out_height, out_width, depth]の4次元。
コンストラクターとデストラクタ | |
|---|---|
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
公的機能
膨張2D
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