openvino.runtime.opset12.scatter_elements_update#
- openvino.runtime.opset12.scatter_elements_update(data: Node | int | float | ndarray, indices: Node | int | float | ndarray, updates: Node | int | float | ndarray, axis: Node | int | float | ndarray, reduction: str | None = 'None', use_init_val: bool | None = True, name: str | None = None) 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. Negative indices are supported.
updates – The tensor with update values.
axis – The axis for scatter.
reduction – The type of operation to perform on the inputs. One of “none”, “sum”, “prod”, “min”, “max”, “mean”.
- Param:
use_init_val: Controls whether the elements in the data input tensor are used as initial value for reduce operations.
- 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.