Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: ApplyAddSign

#include <training_ops.h>

Perbarui '* var' sesuai dengan pembaruan AddSign.

Ringkasan

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

Argumen:

  • scope: Objek Scope
  • var: Harus dari Variabel ().
  • m: Harus dari Variabel ().
  • lr: Faktor penskalaan. Harus skalar.
  • alpha: Harus skalar.
  • sign_decay: Harus skalar.
  • beta: Harus skalar.
  • grad: Gradien.

Atribut opsional (lihat Attrs ):

  • use_locking: Jika True , pembaruan tensor var dan m dilindungi oleh kunci; jika tidak, perilakunya tidak ditentukan, tetapi mungkin menunjukkan lebih sedikit perselisihan.

Pengembalian:

  • Output : Sama seperti "var".

Pembuat dan Penghancur

ApplyAddSign (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)
ApplyAddSign (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 ApplyAddSign::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)

Structs

tensorflow :: ops :: ApplyAddSign :: Attrs

Penyetel atribut opsional untuk ApplyAddSign .

Atribut publik

operasi

Operation operation

di luar

::tensorflow::Output out

Fungsi publik

ApplyAddSign

 ApplyAddSign(
  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
)

ApplyAddSign

 ApplyAddSign(
  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 ApplyAddSign::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

UseLocking

Attrs UseLocking(
  bool x
)