Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: ResourceApplyAddSign

#include <training_ops.h>

Update '* var' sesuai dengan update AddSign.

Ringkasan

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

argumen:

  • Ruang lingkup: Sebuah Ruang Lingkup objek
  • var: Harus dari Variable a ().
  • m: Harus dari Variable a ().
  • lr: Scaling faktor. Harus skalar.
  • alpha: Harus skalar.
  • sign_decay: Harus skalar.
  • beta: Harus skalar.
  • grad: gradien The.

Atribut opsional (lihat Attrs ):

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

Pengembalian:

Konstruktor dan Destructors

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 umum

operation

fungsi publik

operator::tensorflow::Operation () const

fungsi public static

UseLocking (bool x)

struct

tensorflow :: ops :: ResourceApplyAddSign :: attrs

Setter atribut opsional untuk ResourceApplyAddSign .

atribut umum

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 public static

UseLocking

 Attrs UseLocking(
  bool x
)