On this page
tensorflow::ops::InplaceAdd
#include <array_ops.h>
Adds v into specified rows of x.
Summary
Computes y = x; y[i, :] += v; return y.
Arguments:
- scope: A Scope object
- x: A
Tensor
of type T. - i: A vector. Indices into the left-most dimension of
x
. - v: A
Tensor
of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size.
Returns:
Output
: ATensor
of type T. An alias ofx
. The content ofy
is undefined if there are duplicates ini
.
Constructors and Destructors | |
---|---|
InplaceAdd(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input i, ::tensorflow::Input v) |
Public functions | |
---|---|
node() const |
::tensorflow::Node *
|
operator::tensorflow::Input() const |
|
operator::tensorflow::Output() const |
Public attributes
operation
Operation operation
y
::tensorflow::Output y
Public functions
InplaceAdd
InplaceAdd(
const ::tensorflow::Scope & scope,
::tensorflow::Input x,
::tensorflow::Input i,
::tensorflow::Input v
)
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 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/inplace-add