Skip to content
tmpl

gpu_scatter_reduce_axis

::mlx::core::array gpu_scatter_reduce_axis()

An axis scatter of op under policy B. Each out-of-range update becomes the identity of op and is aimed at an in-range position, which it leaves as it was. scatter(b, i, v) performs the MLX scatter on scatter_on_index_corner's operands.