Scatter

Description

Updates the value of data based on updates and indices and returns the result.

Input

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

Output

y: output 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 v9/v10/v11