IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

scatter_nd

def scatter_nd[output_type: DType, indices_type: DType, //, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu")](data: TileTensor[output_type, linear_idx_type=data.linear_idx_type, element_size=data.element_size], indices: TileTensor[indices_type, linear_idx_type=indices.linear_idx_type, element_size=indices.element_size], updates: TileTensor[output_type, linear_idx_type=updates.linear_idx_type, element_size=updates.element_size], output: TileTensor[output_type, linear_idx_type=output.linear_idx_type, element_size=output.element_size], context: DeviceContext)

Scatter_nd operation without any reduction.