ScatterElements

Description

Updates the value of data based on updates and indices and returns the result. Different from Scatter, it provides more refined control and allows you to specify the specific position of the element to be updated in the dimension.

Input

  • data: input tensor of type float16, float, or int32.
  • indices: tensor of type int32 or int64. The shape dimension is the same as that of the input data.
  • updates: tensor of type float16, float, or int32. The shape dimension is the same as that of indices.

Output

y: tensor of the identical data type and shape as input data.

Attribute

axis: int. Defaults to 0, indicating that data is obtained along the axis.

ONNX Opset Support

Opset v11/v12/v13/v14/v15/v16/v17/v18