Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: ResourceApplyFtrl

#include <training_ops.h>

Update '* var' sesuai dengan skema Ftrl-proksimal.

Ringkasan

accum_new = accum + grad * grad linear + = grad - (accum_new ^ (- lr_power) - accum ^ (- lr_power)) / lr * var kuadrat = 1.0 / (accum_new ^ (lr_power) * lr) + 2 * l2 var = (tanda (linear) * l1 - linear) / kuadrat jika | linear | > L1 lain 0.0 accum = accum_new

argumen:

  • Ruang lingkup: Sebuah Ruang Lingkup objek
  • var: Harus dari Variable a ().
  • accum: Harus dari Variable a ().
  • linear: Harus dari Variable a ().
  • grad: gradien The.
  • lr: Scaling faktor. Harus skalar.
  • l1: L1 regularisasi. Harus skalar.
  • l2: L2 regularisasi. Harus skalar.
  • lr_power: faktor Scaling. Harus skalar.

Atribut opsional (lihat Attrs ):

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

Pengembalian:

Konstruktor dan Destructors

ResourceApplyFtrl (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input linear, :: tensorflow::Input grad, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input lr_power)
ResourceApplyFtrl (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input linear, :: tensorflow::Input grad, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input lr_power, const ResourceApplyFtrl::Attrs & attrs)

atribut umum

operation

fungsi publik

operator::tensorflow::Operation () const

fungsi public static

MultiplyLinearByLr (bool x)
UseLocking (bool x)

struct

tensorflow :: ops :: ResourceApplyFtrl :: attrs

Setter atribut opsional untuk ResourceApplyFtrl .

atribut umum

operasi

 Operation operation

fungsi publik

ResourceApplyFtrl

 ResourceApplyFtrl(
  const :: tensorflow::Scope & scope,
  :: tensorflow::Input var,
  :: tensorflow::Input accum,
  :: tensorflow::Input linear,
  :: tensorflow::Input grad,
  :: tensorflow::Input lr,
  :: tensorflow::Input l1,
  :: tensorflow::Input l2,
  :: tensorflow::Input lr_power
)

ResourceApplyFtrl

 ResourceApplyFtrl(
  const :: tensorflow::Scope & scope,
  :: tensorflow::Input var,
  :: tensorflow::Input accum,
  :: tensorflow::Input linear,
  :: tensorflow::Input grad,
  :: tensorflow::Input lr,
  :: tensorflow::Input l1,
  :: tensorflow::Input l2,
  :: tensorflow::Input lr_power,
  const ResourceApplyFtrl::Attrs & attrs
)

operator :: tensorflow :: Operasi

 operator::tensorflow::Operation() const 

fungsi public static

MultiplyLinearByLr

 Attrs MultiplyLinearByLr(
  bool x
)

UseLocking

 Attrs UseLocking(
  bool x
)