aliran tensor:: operasi:: ResourceApplyAddSign

#include <training_ops.h>

Perbarui '*var' sesuai dengan pembaruan AddSign.

Ringkasan

m_t <- beta1 * m_{t-1} + (1 - beta1) * g pembaruan <- (alpha + sign_decay * tanda(g) *tanda(m)) * g variabel <- variabel - lr_t * pembaruan

Argumen:

  • ruang lingkup: Objek Lingkup
  • var: Harus dari Variabel().
  • m: Harus dari Variabel().
  • lr: Faktor penskalaan. Pasti skalar.
  • alpha: Pasti skalar.
  • sign_decay: Harus berupa skalar.
  • beta: Pasti skalar.
  • lulusan: Gradien.

Atribut opsional (lihat Attrs ):

  • use_locking: Jika True , pembaruan tensor var dan m dilindungi oleh kunci; jika tidak, perilaku tersebut tidak terdefinisikan, namun mungkin menunjukkan lebih sedikit pertentangan.

Pengembalian:

Konstruktor dan Destruktor

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)

Atribut publik

operation

Fungsi publik

operator::tensorflow::Operation () const

Fungsi statis publik

UseLocking (bool x)

Struktur

tensorflow:: ops:: ResourceApplyAddSign:: Attrs

Penyetel atribut opsional untuk ResourceApplyAddSign .

Atribut publik

operasi

Operation operation

Fungsi publik

ResourceApplyAddSign

 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

 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
)

operator::tensorflow::Operasi

 operator::tensorflow::Operation() const 

Fungsi statis publik

Gunakan Penguncian

Attrs UseLocking(
  bool x
)