diff options
Diffstat (limited to 'tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt')
-rw-r--r-- | tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt b/tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt index b07ee9fda9..17b79ee30c 100644 --- a/tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt +++ b/tensorflow/core/api_def/base_api/api_def_ResourceScatterNdUpdate.pbtxt @@ -51,7 +51,7 @@ For example, say we want to update 4 scattered elements to a rank-1 tensor to 8 elements. In Python, that update would look like this: ```python - ref = tfe.Variable([1, 2, 3, 4, 5, 6, 7, 8]) + ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8]) indices = tf.constant([[4], [3], [1] ,[7]]) updates = tf.constant([9, 10, 11, 12]) update = tf.scatter_nd_update(ref, indices, updates) |