tensor akışı:: işlem:: KaynakUygulaAddSign
#include <training_ops.h>
AddSign güncellemesine göre '*var'ı güncelleyin.
Özet
m_t <- beta1 * m_{t-1} + (1 - beta1) * g güncelleme <- (alpha +sign_decay *sign(g) *sign(m)) * g değişkeni <- değişken - lr_t * güncelleme
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- var: Bir Variable()'dan olmalıdır.
- m: Bir Variable()'dan olmalıdır.
- lr: Ölçeklendirme faktörü. Bir skaler olmalı.
- alfa: Bir skaler olmalı.
- sign_decay: Skaler olmalı.
- beta: Skaler olmalı.
- grad: Gradyan.
İsteğe bağlı özellikler (bkz. Attrs
):
- use_locking:
True
ise, var ve m tensörlerinin güncellenmesi bir kilitle korunur; aksi takdirde davranış tanımsızdır ancak daha az çekişme sergileyebilir.
İade:
- oluşturulan
Operation
Yapıcılar ve Yıkıcılar | |
---|---|
ResourceApplyAddSign (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) | |
ResourceApplyAddSign (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 ResourceApplyAddSign::Attrs & attrs) |
Kamu işlevleri | |
---|---|
operator::tensorflow::Operation () const |
Genel statik işlevler | |
---|---|
UseLocking (bool x) |
Yapılar | |
---|---|
tensorflow:: ops:: ResourceApplyAddSign:: Öznitelikler | ResourceApplyAddSign için isteğe bağlı öznitelik ayarlayıcılar. |
Genel özellikler
operasyon
Operation operation
Kamu işlevleri
KaynakUygulaAddSign
ResourceApplyAddSign(
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
)
KaynakUygulaAddSign
ResourceApplyAddSign(
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 ResourceApplyAddSign::Attrs & attrs
)
operatör::tensorflow::İşlem
operator::tensorflow::Operation() const
Genel statik işlevler
KullanımKilitleme
Attrs UseLocking(
bool x
)