tensoreflusso:: ops:: ApplicaAddSign
#include <training_ops.h>Aggiorna "*var" in base all'aggiornamento AddSign.
Riepilogo
m_t <- beta1 * m_{t-1} + (1 - beta1) * g aggiorna <- (alpha + sign_decay * sign(g) *sign(m)) * g variabile <- variabile - lr_t * aggiorna
Argomenti:
- scope: un oggetto Scope
- var: dovrebbe provenire da una variabile().
- m: dovrebbe provenire da una variabile().
- lr: fattore di scala. Deve essere uno scalare.
- alfa: deve essere uno scalare.
- sign_decay: deve essere uno scalare.
- beta: deve essere uno scalare.
- grad: il gradiente.
 Attributi facoltativi (vedi Attrs ):
-  use_locking: Se True, l'aggiornamento dei tensori var e m è protetto da un lock; altrimenti il comportamento non è definito, ma può mostrare meno contesa.
Resi:
-  Output: Uguale a "var".
| Costruttori e distruttori | |
|---|---|
| ApplyAddSign (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) | |
| ApplyAddSign (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 ApplyAddSign::Attrs & attrs) | 
| Attributi pubblici | |
|---|---|
| operation | |
| out | |
| Funzioni pubbliche | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| Funzioni pubbliche statiche | |
|---|---|
| UseLocking (bool x) | |
| Strutture | |
|---|---|
| tensorflow:: ops:: ApplyAddSign:: Attrs | Setter di attributi facoltativi per ApplyAddSign . | 
Attributi pubblici
operazione
Operation operation
fuori
::tensorflow::Output out
Funzioni pubbliche
ApplicaAddSign
ApplyAddSign( 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 )
ApplicaAddSign
ApplyAddSign( 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 ApplyAddSign::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
UsaLocking
Attrs UseLocking( bool x )