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 )
© 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/apply-gradient-descent