ReduceMin

Description

Reduces a dimension of a tensor by calculating the minimum value of the input tensor elements along the specified axis. If keepdims is set to 1, the generated tensor has the same number of dimensions as the input tensor. If keepdims is set to 0, the generated tensor has the dimension pruned.

Input

data: input tensor of type uint8, int32, float16, or float32. The data format can be ND.

Output

reduced data: output tensor of the identical data type to input data.

Property

  • keepdims: int, indicating whether to retain the reduced dimension. The default value is 1 (reserved).
  • axes (optional): int64, specifying the computation axis. Value range: [–r, r–1], where r indicates the rank of the input data.

Constraints

If axes is empty, full-dimension reduction is performed on all axes by default. In this case, you are advised to upgrade the ONNX operator to include all axes. Alternatively, before exporting the ONNX graph from Torch, use amin in the Torch model to reduce all axes. Example formula: x.amin(dim=[0, 1, 2])

ONNX Opset Support

Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18