tensorflow:: ops:: LRN
#include <nn_ops.h>局所応答正規化。
まとめ
4次元inputテンソルは、1次元ベクトルの3次元配列(最後の次元に沿って)として扱われ、各ベクトルは個別に正規化されます。特定のベクトル内では、各成分はdepth_radius内の入力の重み付き二乗和で除算されます。詳細には、
sqr_sum[a, b, c, d] =
sum(input[a, b, c, d - depth_radius : d + depth_radius + 1] ** 2)
output = input / (bias + alpha * sqr_sum) ** beta詳細については、 Krizhevsky et al.、「深層畳み込みニューラルネットワークによるImageNet分類(NIPS 2012)」を参照してください。
議論:
- スコープ:スコープオブジェクト
- 入力: 4次元。
オプション属性( Attrs参照):
- depth_radius: 0次元。1次元正規化ウィンドウの半幅。
- バイアス:オフセット(通常は0除算を避けるために正の値)。
- アルファ:スケールファクター。通常は正の値。
- ベータ:指数。
返品:
-
Output:出力テンソル。
コンストラクターとデストラクタ | |
|---|---|
LRN (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
LRN (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const LRN::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Alpha (float x) | |
Beta (float x) | |
Bias (float x) | |
DepthRadius (int64 x) | |
構造 | |
|---|---|
| tensorflow:: ops:: LRN:: Attrs | LRNのオプション属性設定子。 |
公開属性
手術
Operation operation
出力
::tensorflow::Output output
公的機能
LRN
LRN( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
LRN
LRN( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const LRN::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
アルファ
Attrs Alpha( float x )
ベータ
Attrs Beta( float x )
バイアス
Attrs Bias( float x )
深度半径
Attrs DepthRadius( int64 x )