diff options
author | Adria Puigdomenech <adriap@google.com> | 2018-08-21 02:51:23 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-21 02:55:55 -0700 |
commit | fd833e87f150a8963de906593f0b0071cd962fcb (patch) | |
tree | 16ef036d1bf780154a2ac1d3094cdb16897beb54 /tensorflow/core/api_def | |
parent | 9e310b6253d2ec6e57559b77b64faee787385604 (diff) |
Add `batch_scatter_update`, analogous to `batch_gather`.
This operation computes:
ref[i_1, ..., i_n, indices[i_1, ..., i_n, j]] = updates[i_1, ..., i_n, j]
That is, it assumes that `ref`, `indices` and `updates` have a series of leading dimensions that are the same for all of them, and the updates are performed on the last dimension of indices.
PiperOrigin-RevId: 209566652
Diffstat (limited to 'tensorflow/core/api_def')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_ScatterNdUpdate.pbtxt | 2 | ||||
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_ScatterUpdate.pbtxt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_ScatterNdUpdate.pbtxt b/tensorflow/core/api_def/base_api/api_def_ScatterNdUpdate.pbtxt index 1a75e67c0c..e400c7402b 100644 --- a/tensorflow/core/api_def/base_api/api_def_ScatterNdUpdate.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_ScatterNdUpdate.pbtxt @@ -70,5 +70,7 @@ The resulting update to ref would look like this: See `tf.scatter_nd` for more details about how to make updates to slices. + +See also `tf.scatter_update` and `tf.batch_scatter_update`. END } diff --git a/tensorflow/core/api_def/base_api/api_def_ScatterUpdate.pbtxt b/tensorflow/core/api_def/base_api/api_def_ScatterUpdate.pbtxt index 4804908afc..4037dee432 100644 --- a/tensorflow/core/api_def/base_api/api_def_ScatterUpdate.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_ScatterUpdate.pbtxt @@ -59,5 +59,7 @@ Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []` <div style="width:70%; margin:auto; margin-bottom:10px; margin-top:20px;"> <img style="width:100%" src="https://www.tensorflow.org/images/ScatterUpdate.png" alt> </div> + +See also `tf.batch_scatter_update` and `tf.scatter_nd_update`. END } |