Spec-Zone.ru › TensorFlow C++ 1.15

tensorflow::ops::ResourceSparseApplyProximalGradientDescent

#include <training_ops.h>

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

Краткое описание

Для строк, для которых есть grad, мы обновляем var следующим образом: prox_v = var - alpha * grad var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}

Аргументы:

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

Дополнительные атрибуты (см. Attrs):

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

Возвращает:

  • созданный Operation
Конструкторы и деструкторы
ResourceSparseApplyProximalGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices)
ResourceSparseApplyProximalGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices, const ResourceSparseApplyProximalGradientDescent::Attrs & attrs)
Публичные атрибуты
operation
Operation
Публичные функции
operator::tensorflow::Operation() const
Публичные статические функции
UseLocking(bool x)
Attrs
Структуры
tensorflow::ops::ResourceSparseApplyProximalGradientDescent::Attrs

Дополнительные атрибуты установки для ResourceSparseApplyProximalGradientDescent.

Публичные атрибуты

operation

Operation operation

Публичные функции

ResourceSparseApplyProximalGradientDescent

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

ResourceSparseApplyProximalGradientDescent

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

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

operator::tensorflow::Operation() const 

Публичные статические функции

UseLocking

Attrs UseLocking(
  bool x
)

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

Spec-Zone.ru

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