Tensorflow :: ops :: ResourceApplyAdagrad
#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:
- die erstellte
Operation
Konstruktoren und Destruktoren | |
---|---|
ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad) | |
ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, const ResourceApplyAdagrad::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation |
Öffentliche Funktionen | |
---|---|
operator::tensorflow::Operation () const |
Öffentliche statische Funktionen | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
Strukturen | |
---|---|
tensorflow :: ops :: ResourceApplyAdagrad :: Attrs | Optionale Attributsetzer für ResourceApplyAdagrad . |
Öffentliche Attribute
Operation
Operation operation
Öffentliche Funktionen
ResourceApplyAdagrad
ResourceApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad )
ResourceApplyAdagrad
ResourceApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, const ResourceApplyAdagrad::Attrs & attrs )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const
Öffentliche statische Funktionen
UpdateSlots
Attrs UpdateSlots( bool x )
UseLocking
Attrs UseLocking( bool x )