tensorflow :: opérations :: ResourceApplyAddSign
#include <training_ops.h>
Mettez à jour '* var' en fonction de la mise à jour AddSign.
Résumé
m_t <- beta1 * m_ {t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign (g) * sign (m)) * g variable <- variable - lr_t * update
Arguments:
- scope: un objet Scope
- var: Doit provenir d'une variable ().
- m: Doit provenir d'une variable ().
- lr: facteur d'échelle. Doit être un scalaire.
- alpha: doit être un scalaire.
- sign_decay: doit être un scalaire.
- beta: doit être un scalaire.
- grad: Le dégradé.
Attributs facultatifs (voir Attrs
):
- use_locking: Si
True
, la mise à jour des tenseurs var et m est protégée par un verrou; sinon, le comportement n'est pas défini, mais peut présenter moins de conflits.
Retour:
- l'
Operation
créée
Constructeurs et destructeurs | |
---|---|
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad) | |
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ResourceApplyAddSign::Attrs & attrs) |
Attributs publics | |
---|---|
operation |
Fonctions publiques | |
---|---|
operator::tensorflow::Operation () const |
Fonctions statiques publiques | |
---|---|
UseLocking (bool x) |
Structs | |
---|---|
tensorflow :: ops :: ResourceApplyAddSign :: Attrs | Définisseurs d'attributs facultatifs pour ResourceApplyAddSign . |
Attributs publics
opération
Operation operation
Fonctions publiques
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyAddSign::Attrs & attrs )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const
Fonctions statiques publiques
Utiliser le verrouillage
Attrs UseLocking( bool x )