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 )
Оператор::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/versions/r2.9/api_docs/cc/class/tensorflow/ops/resource-apply-proximal-gradient-descent