tensorflow::ops::SparseApplyProximalGradientDescent

#include <training_ops.h>

Aggiornamento sparso '*var' come algoritmo FOBOS con tasso di apprendimento fisso.

Riepilogo

Questo vale per le righe per cui abbiamo il gradiente, aggiorniamo la variabile come segue: $$prox_v = var - alpha * grad$$ $$var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}$$

Argomentazioni:

  • ambito: un oggetto Scope
  • var: Dovrebbe provenire da una Variable().
  • alpha: Fattore di scala. Deve essere uno scalare.
  • l1: Regolarizzazione L1. Deve essere uno scalare.
  • l2: Regolarizzazione L2. Deve essere uno scalare.
  • grad: Il gradiente.
  • indici: Un vettore di indici nella prima dimensione di var e accum.

Attributi opzionali (vedere Attrs ):

  • use_locking: Se True, la sottrazione sarà protetta da un blocco; altrimenti il ​​comportamento non è definito, ma potrebbe presentare una minore contesa.

Resi:

Costruttori e distruttori

SparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices)
SparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices, const SparseApplyProximalGradientDescent::Attrs & attrs)

attributi pubblici

operation
out

Funzioni pubbliche

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

Funzioni statiche pubbliche

UseLocking (bool x)

Strutture

tensorflow::ops::SparseApplyProximalGradientDescent::Attrs

Impostatori di attributi opzionali per SparseApplyProximalGradientDescent .

attributi pubblici

operazione

Operation operation

fuori

::tensorflow::Output out

Funzioni pubbliche

SparseApplicaProximalGradientDescent

 SparseApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices
)

SparseApplicaProximalGradientDescent

 SparseApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  const SparseApplyProximalGradientDescent::Attrs & attrs
)

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensoreflusso::output

 operator::tensorflow::Output() const 

Funzioni statiche pubbliche

UseLocking

Attrs UseLocking(
  bool x
)