Skip to content
fn

min_op

→TensorImplPtr
int min_op(const int & a, const int & axes, bool keepdims)

Reduce a by minimum along axes.

See Also

MinBackward — backward node.

Parameters

aTensorImplPtr
Input tensor.
axesstd::vector<int>
Axes to reduce. Negative indices wrap.
keepdimsbool
If true, retains reduced dims as size-1.

Returns

TensorImplPtr

Output tensor of the reduced shape.