Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: ResourceApplyAdam

#include <training_ops.h>

Update '* var' sesuai dengan algoritma Adam.

Ringkasan

$$ {lr} 't: = {learning_rate} * {1 - ^ t} / (1 - ^ t) $$
$$ m_t: = * M_ {t-1} + (1 -) * g $$
$$ v_t: = * v_ {t-1} + (1 -) * 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:

Konstruktor dan Destructors

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

atribut umum

operation

fungsi publik

operator::tensorflow::Operation () const

fungsi public static

UseLocking (bool x)
UseNesterov (bool x)

struct

tensorflow :: ops :: ResourceApplyAdam :: attrs

Setter atribut opsional untuk ResourceApplyAdam .

atribut umum

operasi

 Operation operation

fungsi publik

ResourceApplyAdam

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

ResourceApplyAdam

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

operator :: tensorflow :: Operasi

 operator::tensorflow::Operation() const 

fungsi public static

UseLocking

 Attrs UseLocking(
  bool x
)

UseNesterov

 Attrs UseNesterov(
  bool x
)