Returns the first minimum’s axis-relative INT32 index for a f32 tensor.
The input is contiguous NHWC with four extents; axis is a canonical index 0..3. Output contains the product of the other three extents, in row-major order with the reduced axis removed. Logical ranks, negative-axis normalization and squeezed output metadata are the caller’s responsibility. No scratch is needed.
A NaN never wins, regardless of payload, sign or signaling bit, as in LiteRT’s reference ARG_MAX/ARG_MIN: the first non-NaN extremum is selected and an all-NaN line returns index 0. Equal numeric extrema retain the first index, including +0/-0 ties. Infinities and subnormals follow numeric order. Selection uses raw bits, with no floating-point arithmetic or conversion; numerical FP controls and cumulative exception flags are preserved. Native LiteRT FP16 evaluation is not implied.
Metadata is required; extents must be nonnegative and the reduced extent must be positive, even when another extent is zero. Declared input and INT32 output byte counts must each fit INT32_MAX; any zero extent makes its tensor count zero. Data pointers may be NULL only for zero-element tensors. Valid empty outputs perform no data accesses. Buffers must be normally aligned, contiguous, adequately allocated and non-overlapping with each other and metadata; capacity and overlap are caller preconditions. All detected errors precede output writes.
Parameters
Parameters of arm_argmin_f32| Name | Type | Direction | Description |
|---|
input_data | const float32_t * | in | Input tensor. |
|---|
input_dims | const cmsis_nn_dims * | in | Four NHWC extents. |
|---|
axis | int32_t | in | Canonical reduction axis, in [0,3]. |
|---|
output_data | int32_t * | out | INT32 indices, each in [0,input_dims[axis]). |
|---|
Returns
Returns of arm_argmin_f32| Description |
|---|
| ARM_CMSIS_NN_SUCCESS or ARM_CMSIS_NN_ARG_ERROR. |