tensorflow :: ops :: ResourceApplyProximalAdagrad
#include <training_ops.h>
Adagrad学習率のFOBOSに従って、「* var」と「* accum」を更新します。
概要
accum + = grad * grad prox_v = var --lr * grad *(1 / sqrt(accum))var = sign(prox_v)/(1 + lr * l2)* max {| prox_v | -lr * l1,0}
引数:
- スコープ:スコープオブジェクト
- var:Variable()からのものである必要があります。
- accum:Variable()からのものである必要があります。
- lr:スケーリング係数。スカラーである必要があります。
- l1:L1正則化。スカラーである必要があります。
- l2:L2正則化。スカラーである必要があります。
- grad:グラデーション。
オプションの属性(参照Attrs
):
- use_locking:Trueの場合、varテンソルとaccumテンソルの更新はロックによって保護されます。それ以外の場合、動作は定義されていませんが、競合が少なくなる可能性があります。
戻り値:
- 作成された
Operation
コンストラクタとデストラクタ | |
---|---|
ResourceApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad) | |
ResourceApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, const ResourceApplyProximalAdagrad::Attrs & attrs) |
パブリック属性 | |
---|---|
operation |
公の行事 | |
---|---|
operator::tensorflow::Operation () const |
パブリック静的関数 | |
---|---|
UseLocking (bool x) |
構造体 | |
---|---|
tensorflow :: ops :: ResourceApplyProximalAdagrad :: Attrs | ResourceApplyProximalAdagradのオプションの属性セッター。 |
パブリック属性
操作
Operation operation
公の行事
ResourceApplyProximalAdagrad
ResourceApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad )
ResourceApplyProximalAdagrad
ResourceApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, const ResourceApplyProximalAdagrad::Attrs & attrs )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const
パブリック静的関数
UseLocking
Attrs UseLocking( bool x )