tensorflow::ops::ApplyGradientDescent
#include <training_ops.h>
Обновляет '*var', вычитая из него 'alpha' * 'delta'.
Краткое описание
Аргументы:
- scope: Объект Scope
- var: Должен быть получен из Variable().
- alpha: Коэффициент масштабирования. Должен быть скалярным.
- delta: Изменение.
Необязательные атрибуты (см. Attrs):
- use_locking: Если
True, вычитание будет защищено блокировкой; в противном случае поведение не определено, но может наблюдаться меньшая конкуренция.
Возвращает:
-
Output: То же, что и "var".
| Конструкторы и деструкторы | |
|---|---|
ApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta) | |
ApplyGradientDescent(const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ApplyGradientDescent::Attrs & attrs) |
| Публичные атрибуты | |
|---|---|
operation | |
out | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::ApplyGradientDescent::Attrs | Необязательные установщики атрибутов для ApplyGradientDescent. |
Публичные атрибуты
operation
Operation operation
out
::tensorflow::Output out
Публичные функции
ApplyGradientDescent
ApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta )
ApplyGradientDescent
ApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ApplyGradientDescent::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Публичные статические функции
UseLocking
Attrs UseLocking( bool x )
© 2020 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.4/api_docs/cc/class/tensorflow/ops/apply-gradient-descent