openvino.runtime.opset10.scatter_elements_update

openvino.runtime.opset10.scatter_elements_update(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], indices: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], updates: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], axis: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: Optional[str] = None) openvino._pyopenvino.Node

Return a node which produces a ScatterElementsUpdate operation.

Parameters
  • data – The input tensor to be updated.

  • indices – The tensor with indexes which will be updated.

  • updates – The tensor with update values.

  • axis – The axis for scatter.

Returns

ScatterElementsUpdate node

ScatterElementsUpdate creates a copy of the first input tensor with updated elements specified with second and third input tensors.

For each entry in updates, the target index in data is obtained by combining the corresponding entry in indices with the index of the entry itself: the index-value for dimension equal to axis is obtained from the value of the corresponding entry in indices and the index-value for dimension not equal to axis is obtained from the index of the entry itself.