tensorflow::ops::ResourceApplyPowerSign
#include <training_ops.h>
Обновляет '*var' в соответствии с обновлением AddSign.
Краткое описание
m_t <- beta1 * m_{t-1} + (1 - beta1) * g update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g variable <- variable - lr_t * update
Аргументы:
- scope: Объект Scope
- var: Должен быть из Variable().
- m: Должен быть из Variable().
- lr: Коэффициент масштабирования. Должен быть скаляром.
- logbase: Должен быть скаляром.
- sign_decay: Должен быть скаляром.
- beta: Должен быть скаляром.
- grad: Градиент.
Дополнительные атрибуты (см. Attrs):
- use_locking: Если
True, обновление тензоров var и m защищено блокировкой; в противном случае поведение не определено, но может сопровождаться меньшей конкуренцией.
Возвращает:
- созданный
Operation
| Конструкторы и деструкторы | |
|---|---|
ResourceApplyPowerSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad) | |
ResourceApplyPowerSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyPowerSign::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
| Публичные функции | |
|---|---|
operator::tensorflow::Operation() const | |
| Публичные статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ResourceApplyPowerSign::Attrs | Дополнительные параметры для настройки ResourceApplyPowerSign. |
Публичные атрибуты
operation
Operation operation
Публичные функции
ResourceApplyPowerSign
ResourceApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ResourceApplyPowerSign
ResourceApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyPowerSign::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/api_docs/cc/class/tensorflow/ops/resource-apply-power-sign