diff options
author | 2018-07-20 01:44:48 -0700 | |
---|---|---|
committer | 2018-07-20 01:48:31 -0700 | |
commit | 6533c5a8ade658568a82c3c7bb9d1368a641c0a3 (patch) | |
tree | 8176982ef4dfcd332df184234d4b2803c9704132 /tensorflow | |
parent | ee5271968e17b1bc0b852b0285dad4a38e1a97a0 (diff) |
Describe what happens on case of duplicate indices on scatter_nd.
PiperOrigin-RevId: 205367181
Diffstat (limited to 'tensorflow')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_ScatterNd.pbtxt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_ScatterNd.pbtxt b/tensorflow/core/api_def/base_api/api_def_ScatterNd.pbtxt index 58753a651a..ad1c527b01 100644 --- a/tensorflow/core/api_def/base_api/api_def_ScatterNd.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_ScatterNd.pbtxt @@ -32,8 +32,12 @@ slices within a tensor (initially zero for numeric, empty for string) of the given `shape` according to indices. This operator is the inverse of the @{tf.gather_nd} operator which extracts values or slices from a given tensor. +If `indices` contains duplicates, then their updates are accumulated (summed). + **WARNING**: The order in which updates are applied is nondeterministic, so the -output will be nondeterministic if `indices` contains duplicates. +output will be nondeterministic if `indices` contains duplicates -- because +of some numerical approximation issues, numbers summed in different order +may yield different results. `indices` is an integer tensor containing indices into a new tensor of shape `shape`. The last dimension of `indices` can be at most the rank of `shape`: |