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