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

Method scatter

tensorflow/python/ops/tensor_array_ops.py:582–594  ·  view source on GitHub ↗

See TensorArray.

(self, indices, value, name=None)

Source from the content-addressed store, hash-verified

580
581 @tf_should_use.should_use_result
582 def scatter(self, indices, value, name=None):
583 """See TensorArray."""
584 with ops.name_scope(name, "TensorArrayScatter",
585 [self._flow, value, indices]):
586 # TODO(b/129870929): Fix after all callers provide proper init dtype.
587 value = ops.convert_to_tensor(
588 value, preferred_dtype=self._dtype, name="value")
589 _check_dtypes(value, self._dtype)
590 self._check_element_shape(value.shape[1:])
591 flow_out = list_ops.tensor_list_scatter(
592 tensor=value, indices=indices, element_shape=self.element_shape,
593 input_handle=self._flow)
594 return build_ta_with_new_flow(self, flow_out)
595
596 @tf_should_use.should_use_result
597 def split(self, value, lengths, name=None):

Callers

nothing calls this directly

Calls 4

_check_element_shapeMethod · 0.95
_check_dtypesFunction · 0.85
build_ta_with_new_flowFunction · 0.85
name_scopeMethod · 0.45

Tested by

no test coverage detected