tensorflow :: opérations :: AppliquerProximalAdagrad
#include <training_ops.h>
Mettez à jour '* var' et '* accum' selon FOBOS avec le taux d'apprentissage d'Adagrad.
Résumé
accum + = grad * grad prox_v = var - lr * grad * (1 / sqrt (accum)) var = sign (prox_v) / (1 + lr * l2) * max {| prox_v | -lr * l1,0}
Arguments:
- scope: un objet Scope
- var: Doit provenir d'une variable ().
- accum: Doit provenir d'une variable ().
- lr: facteur d'échelle. Doit être un scalaire.
- l1: régularisation L1. Doit être un scalaire.
- l2: régularisation L2. Doit être un scalaire.
- grad: Le dégradé.
Attributs facultatifs (voir Attrs
):
- use_locking: Si True, la mise à jour des tenseurs var et accum sera protégée par un verrou; sinon, le comportement n'est pas défini, mais peut présenter moins de conflits.
Retour:
-
Output
: identique à "var".
Constructeurs et destructeurs | |
---|---|
ApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad) | |
ApplyProximalAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, const ApplyProximalAdagrad::Attrs & attrs) |
Attributs publics | |
---|---|
operation | |
out |
Fonctions publiques | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fonctions statiques publiques | |
---|---|
UseLocking (bool x) |
Structs | |
---|---|
tensorflow :: ops :: ApplyProximalAdagrad :: Attrs | Définisseurs d' attributs facultatifs pour ApplyProximalAdagrad . |
Attributs publics
opération
Operation operation
en dehors
::tensorflow::Output out
Fonctions publiques
AppliquerProximalAdagrad
ApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad )
AppliquerProximalAdagrad
ApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, const ApplyProximalAdagrad::Attrs & attrs )
nœud
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Fonctions statiques publiques
Utiliser le verrouillage
Attrs UseLocking( bool x )