Tensorflow :: ops :: ApplyAdagrad
#include <training_ops.h>
Aktualisieren Sie '* var' gemäß dem Adagrad-Schema.
Zusammenfassung
akkumulieren + = grad * grad var - = lr * grad * (1 / sqrt (akkumulieren))
Argumente:
- scope: Ein Scope- Objekt
- var: Sollte von einer Variablen stammen ().
- accum: Sollte von einer Variablen stammen ().
- lr: Skalierungsfaktor. Muss ein Skalar sein.
- grad: Der Gradient.
Optionale Attribute (siehe Attrs
):
- use_locking: Wenn
True
, wird die Aktualisierung der Var- und Accum-Tensoren durch eine Sperre geschützt. Andernfalls ist das Verhalten undefiniert, weist jedoch möglicherweise weniger Konflikte auf.
Kehrt zurück:
-
Output
: Wie "var".
Konstruktoren und Destruktoren | |
---|---|
ApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad) | |
ApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, const ApplyAdagrad::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
out |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
Strukturen | |
---|---|
tensorflow :: ops :: ApplyAdagrad :: Attrs | Optionale Attributsetzer für ApplyAdagrad . |
Öffentliche Attribute
Operation
Operation operation
aus
::tensorflow::Output out
Öffentliche Funktionen
ApplyAdagrad
ApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad )
ApplyAdagrad
ApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, const ApplyAdagrad::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
UpdateSlots
Attrs UpdateSlots( bool x )
UseLocking
Attrs UseLocking( bool x )