aliran tensor:: operasi:: TerapkanProksimalAdagrad
#include <training_ops.h>
Perbarui '*var' dan '*accum' menurut FOBOS dengan kecepatan pembelajaran Adagrad.
Ringkasan
accum += grad * grad prox_v = var - lr * grad * (1 / sqrt(accum)) var = tanda(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0}
Argumen:
- ruang lingkup: Objek Lingkup
- var: Harus dari Variabel().
- accum: Harus dari Variabel().
- lr: Faktor penskalaan. Pasti skalar.
- l1: Regularisasi L1. Pasti skalar.
- l2: Regularisasi L2. Pasti skalar.
- lulusan: Gradien.
Atribut opsional (lihat Attrs
):
- use_locking: Jika Benar, pembaruan tensor var dan accum akan dilindungi oleh kunci; jika tidak, perilaku tersebut tidak terdefinisikan, namun mungkin menunjukkan lebih sedikit pertentangan.
Pengembalian:
-
Output
: Sama seperti "var".
Konstruktor dan Destruktor | |
---|---|
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) |
Atribut publik | |
---|---|
operation | |
out |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
UseLocking (bool x) |
Struktur | |
---|---|
tensorflow:: ops:: ApplyProximalAdagrad:: Attrs | Penyetel atribut opsional untuk ApplyProximalAdagrad . |
Atribut publik
operasi
Operation operation
keluar
::tensorflow::Output out
Fungsi publik
TerapkanProksimalAdagrad
ApplyProximalAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad )
TerapkanProksimalAdagrad
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 )
simpul
::tensorflow::Node * node() const
operator::tensorflow::Masukan
operator::tensorflow::Input() const
operator::tensorflow::Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Gunakan Penguncian
Attrs UseLocking( bool x )