Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: ApplyAdam

#include <training_ops.h>

Update '* var' sesuai dengan algoritma Adam.

Ringkasan

$$ lr_t: = {learning_rate} * {1 - beta_2 ^ t} / (1 - beta_1 ^ t) $$
$$ m_t: = beta_1 * M_ {t-1} + (1 - beta_1) * g $$
$$ v_t: = beta_2 * v_ {t-1} + (1 - beta_2) * g * g $$
$$ variabel: = variabel - lr_t * m_t / ({} v_t +) $$

argumen:

  • Ruang lingkup: Sebuah Ruang Lingkup objek
  • var: Harus dari Variable a ().
  • m: Harus dari Variable a ().
  • v: Harus dari Variable a ().
  • beta1_power: Harus skalar.
  • beta2_power: Harus skalar.
  • lr: Scaling faktor. Harus skalar.
  • beta1: Faktor Momentum. Harus skalar.
  • beta2: Faktor Momentum. Harus skalar.
  • epsilon: jangka Ridge. Harus skalar.
  • grad: gradien The.

Atribut opsional (lihat Attrs ):

  • use_locking: Jika True , pemutakhiran var, m, dan tensor v akan dilindungi oleh kunci; jika perilaku tidak terdefinisi, tapi mungkin menunjukkan kurang pertentangan.
  • use_nesterov: Jika True , menggunakan update Nesterov.

Pengembalian:

  • Output : Sama seperti "var".

Konstruktor dan Destructors

ApplyAdam (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input v, :: tensorflow::Input beta1_power, :: tensorflow::Input beta2_power, :: tensorflow::Input lr, :: tensorflow::Input beta1, :: tensorflow::Input beta2, :: tensorflow::Input epsilon, :: tensorflow::Input grad)
ApplyAdam (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input v, :: tensorflow::Input beta1_power, :: tensorflow::Input beta2_power, :: tensorflow::Input lr, :: tensorflow::Input beta1, :: tensorflow::Input beta2, :: tensorflow::Input epsilon, :: tensorflow::Input grad, const ApplyAdam::Attrs & attrs)

atribut umum

operation
out

fungsi publik

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

fungsi public static

UseLocking (bool x)
UseNesterov (bool x)

struct

tensorflow :: ops :: ApplyAdam :: attrs

Setter atribut opsional untuk ApplyAdam .

atribut umum

operasi

 Operation operation

di luar

:: tensorflow::Output out

fungsi publik

ApplyAdam

 ApplyAdam(
  const :: tensorflow::Scope & scope,
  :: tensorflow::Input var,
  :: tensorflow::Input m,
  :: tensorflow::Input v,
  :: tensorflow::Input beta1_power,
  :: tensorflow::Input beta2_power,
  :: tensorflow::Input lr,
  :: tensorflow::Input beta1,
  :: tensorflow::Input beta2,
  :: tensorflow::Input epsilon,
  :: tensorflow::Input grad
)

ApplyAdam

 ApplyAdam(
  const :: tensorflow::Scope & scope,
  :: tensorflow::Input var,
  :: tensorflow::Input m,
  :: tensorflow::Input v,
  :: tensorflow::Input beta1_power,
  :: tensorflow::Input beta2_power,
  :: tensorflow::Input lr,
  :: tensorflow::Input beta1,
  :: tensorflow::Input beta2,
  :: tensorflow::Input epsilon,
  :: tensorflow::Input grad,
  const ApplyAdam::Attrs & attrs
)

simpul

::tensorflow::Node * node() const 

Operator :: tensorflow :: Masukan

 operator::tensorflow::Input() const 

Operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

fungsi public static

UseLocking

 Attrs UseLocking(
  bool x
)

UseNesterov

 Attrs UseNesterov(
  bool x
)