tensorflow::ops::ResourceApplyAddSign
#include <training_ops.h>
Обновляет '*var' согласно обновлению AddSign.
Краткое описание
mt <- beta1 * mt-1 + (1 - beta1) * g update <- (alpha + sign_decay * sign(g) * sign(m)) * g variable <- variable - lrt * update
Аргументы:
- scope: Объект Scope
- var: Должен быть из Variable().
- m: Должен быть из Variable().
- lr: Коэффициент масштабирования. Должен быть скаляром.
- alpha: Должен быть скаляром.
- sign_decay: Должен быть скаляром.
- beta: Должен быть скаляром.
- grad: Градиент.
Необязательные атрибуты (см. Attrs):
- use_locking: Если
True, обновление тензоров var и m защищено блокировкой; в противном случае поведение не определено, но может характеризоваться меньшим конфликтом.
Возвращает:
- созданный
Operation
| Конструкторы и деструкторы | |
|---|---|
ResourceApplyAddSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad) | |
ResourceApplyAddSign(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyAddSign::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
| Публичные функции | |
|---|---|
operator::tensorflow::Operation() const | |
| Публичные статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ResourceApplyAddSign::Attrs | Необязательные установщики атрибутов для ResourceApplyAddSign. |
Публичные атрибуты
operation
Operation operation
Публичные функции
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyAddSign::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-add-sign