tensorflow::ops::AssignAdd
#include <state_ops.h>
Обновляет 'ref', прибавляя к нему 'value'.
Краткое описание
Эта операция возвращает «ref» после обновления. Это упрощает объединение в цепочку операций, которым требуется использовать новое значение.
Аргументы:
- scope: объект Scope
- ref: должен быть из узла
Variable. - value: значение, которое нужно добавить к переменной.
Необязательные атрибуты (см. Attrs):
- use_locking: если значение True, сложение будет защищено блокировкой; в противном случае поведение не определено, но может наблюдаться меньшее соперничество за ресурсы.
Возвращает:
-
Output: = то же, что и «ref». Возвращается для удобства операций, которым нужно использовать новое значение после обновления переменной.
| Конструкторы и деструкторы | |
|---|---|
AssignAdd(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value) | |
AssignAdd(const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value, const AssignAdd::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
operation | |
output_ref | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Открытые статические функции | |
|---|---|
UseLocking(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::AssignAdd::Attrs | Методы настройки необязательных атрибутов для AssignAdd. |
Открытые атрибуты
operation
Operation operation
output_ref
::tensorflow::Output output_ref
Открытые функции
AssignAdd
AssignAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value )
AssignAdd
AssignAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, ::tensorflow::Input value, const AssignAdd::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/assign-add