tensorflow :: ops :: ResourceApplyProximalGradientDescent

#include <training_ops.h>

Aggiorna '* var' come algoritmo FOBOS con velocità di apprendimento fissa.

Sommario

prox_v = var - alpha * delta var = sign (prox_v) / (1 + alpha * l2) * max {| prox_v | -alpha * l1,0}

Argomenti:

  • scope: un oggetto Scope
  • var: dovrebbe provenire da una variabile ().
  • alpha: fattore di scala. Deve essere uno scalare.
  • l1: regolarizzazione L1. Deve essere uno scalare.
  • l2: regolarizzazione L2. Deve essere uno scalare.
  • delta: il cambiamento.

Attributi opzionali (vedi Attrs ):

  • use_locking: se True, la sottrazione sarà protetta da un blocco; in caso contrario, il comportamento è indefinito, ma potrebbe presentare meno contese.

Ritorna:

Costruttori e distruttori

ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta)
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs)

Attributi pubblici

operation

Funzioni pubbliche

operator::tensorflow::Operation () const

Funzioni statiche pubbliche

UseLocking (bool x)

Structs

tensorflow :: ops :: ResourceApplyProximalGradientDescent :: Attrs

Setter di attributi facoltativi per ResourceApplyProximalGradientDescent .

Attributi pubblici

operazione

Operation operation

Funzioni pubbliche

ResourceApplyProximalGradientDescent

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta
)

ResourceApplyProximalGradientDescent

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta,
  const ResourceApplyProximalGradientDescent::Attrs & attrs
)

operator :: tensorflow :: Operation

 operator::tensorflow::Operation() const 

Funzioni statiche pubbliche

UseLocking

Attrs UseLocking(
  bool x
)