Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::ResourceApplyProximalGradientDescent

#include <training_ops.h>

Обновление '*var' по алгоритму FOBOS с фиксированной скоростью обучения.

Резюме

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

Аргументы:

  • scope: Объект Scope
  • var: Должен быть из Variable().
  • alpha: Коэффициент масштабирования. Должен быть скаляром.
  • l1: L1 регуляризация. Должен быть скаляром.
  • l2: L2 регуляризация. Должен быть скаляром.
  • delta: Изменение.

Необязательные атрибуты (см. Attrs):

  • use_locking: Если True, вычитание будет защищено блокировкой; в противном случае поведение не определено, но может характеризоваться меньшей конкуренцией.

Возвращает:

  • созданный Operation
Конструкторы и деструкторы
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)
Общедоступные атрибуты
operation
Operation
Общедоступные функции
operator::tensorflow::Operation() const
Общедоступные статические функции
UseLocking(bool x)
Attrs
Структуры
tensorflow::ops::ResourceApplyProximalGradientDescent::Attrs

Необязательные параметры установки атрибутов для ResourceApplyProximalGradientDescent.

Общедоступные атрибуты

оператор

Operation operation

Общедоступные функции

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
)

Оператор::tensorflow::Оператор

operator::tensorflow::Operation() const 

Общедоступные статические функции

UseLocking

Attrs UseLocking(
  bool x
)

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/resource-apply-proximal-gradient-descent

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API