tensorflow:: ops:: ApplyAdagrad
#include <training_ops.h>'*var' を adagrad スキームに従って更新します。
まとめ
accum += grad * grad var -= lr * grad * (1 / sqrt(accum))
議論:
- スコープ:スコープオブジェクト
- var: Variable() から取得する必要があります。
- accum: Variable() から取得する必要があります。
- lr: スケーリング係数。スカラー値である必要があります。
- grad: 勾配。
オプション属性( Attrs参照):
- use_locking:
Trueの場合、var および accum テンソルの更新はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。
返品:
-
Output: "var" と同じです。
コンストラクターとデストラクタ | |
|---|---|
ApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad) | |
ApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, const ApplyAdagrad::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
out | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) | |
構造 | |
|---|---|
| tensorflow:: ops:: ApplyAdagrad:: Attrs | ApplyAdagradのオプション属性設定子。 |
公開属性
手術
Operation operation
外
::tensorflow::Output out
公的機能
ApplyAdagrad
ApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad )
ApplyAdagrad
ApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, const ApplyAdagrad::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
スロットの更新
Attrs UpdateSlots( bool x )
ロックを使用する
Attrs UseLocking( bool x )