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 | |
| Открытые функции | |
|---|---|
operator::tensorflow::Operation() const | |
| Открытые статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| 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 )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Открытые статические функции
UseLocking
Attrs UseLocking( bool x )
© 2022 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/api_docs/cc/class/tensorflow/ops/resource-sparse-apply-proximal-gradient-descent