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 | |
| Общедоступные функции | |
|---|---|
operator::tensorflow::Operation() const | |
| Общедоступные статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ResourceApplyProximalGradientDescent::Attrs | Дополнительные атрибуты для установки ResourceApplyProximalGradientDescent. |
Общедоступные атрибуты
operation
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 )
operator::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-apply-proximal-gradient-descent