tensorflow:: ops:: ApplyPowerSign
#include <training_ops.h>AddSignの更新に合わせて「*var」を更新してください。
まとめ
m_t <- beta1 * m_{t-1} + (1 - beta1) * g update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g variable <- variable - lr_t * update
議論:
- スコープ:スコープオブジェクト
- var: Variable() から取得する必要があります。
- m: Variable() から取得する必要があります。
- lr: スケーリング係数。スカラー値である必要があります。
- logbase: スカラー値である必要があります。
- sign_decay: スカラー値である必要があります。
- beta: スカラー値である必要があります。
- grad: 勾配。
オプション属性( Attrs参照):
- use_locking:
Trueの場合、var および m テンソルの更新はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。
返品:
-
Output: "var" と同じです。
構築者と破壊者 | |
|---|---|
ApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad) | |
ApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ApplyPowerSign::Attrs & attrs) |
公開属性 | |
|---|---|
operation | |
out | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
UseLocking (bool x) | |
構造 | |
|---|---|
| tensorflow:: ops:: ApplyPowerSign:: Attrs | ApplyPowerSignのオプション属性設定子。 |
公開属性
手術
Operation operation
外
::tensorflow::Output out
公的機能
ApplyPowerSign
ApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ApplyPowerSign
ApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ApplyPowerSign::Attrs & attrs )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
ロックを使用する
Attrs UseLocking( bool x )