MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / scatter

Method scatter

tensorflow/python/ops/tensor_array_ops.py:1152–1168  ·  view source on GitHub ↗

Scatter the values of a `Tensor` in specific indices of a `TensorArray`. Args: indices: A `1-D` `Tensor` taking values in `[0, max_value)`. If the `TensorArray` is not dynamic, `max_value=size()`. value: (N+1)-D. Tensor of type `dtype`. The Tensor to unpack. name: A

(self, indices, value, name=None)

Source from the content-addressed store, hash-verified

1150
1151 @tf_should_use.should_use_result
1152 def scatter(self, indices, value, name=None):
1153 """Scatter the values of a `Tensor` in specific indices of a `TensorArray`.
1154
1155 Args:
1156 indices: A `1-D` `Tensor` taking values in `[0, max_value)`. If
1157 the `TensorArray` is not dynamic, `max_value=size()`.
1158 value: (N+1)-D. Tensor of type `dtype`. The Tensor to unpack.
1159 name: A name for the operation (optional).
1160
1161 Returns:
1162 A new TensorArray object with flow that ensures the scatter occurs.
1163 Use this object all for subsequent operations.
1164
1165 Raises:
1166 ValueError: if the shape inference fails.
1167 """
1168 return self._implementation.scatter(indices, value, name=name)
1169
1170 @tf_should_use.should_use_result
1171 def split(self, value, lengths, name=None):

Calls

no outgoing calls