Skip to content
fn

scatter_amin_op

→TensorImplPtr
int scatter_amin_op(const int & base, const int & indices, const int & src, int dim)

Scatter with element-wise min reduction at duplicate indices.

Math

At each output slot ii, the result is the minimum among base[i] and all src[j] with indices[j] == i.

See Also

scatter_amax_op : Companion max variant.

Parameters

base, indices, src, dim
Same semantics as scatter_add_op.

Returns

TensorImplPtr

Reduced tensor, same shape and dtype as base.

Notes

Backward identical to scatter_amax_op with the winner predicate flipped to "matches the output minimum".