Skip to content
heliaCORE
API reference
HELIA HUB

Softmax Functions

Machine-readable model

function

Softmax using the float-native API signature.

Include/arm_nnfunctions_flt.h:1882

arm_cmsis_nn_status arm_softmax_f32(const float32_t *input, int32_t num_rows, int32_t row_size, float32_t *output)

Softmax using the float-native API signature.

Parameters of arm_softmax_f32
NameTypeDirectionDescription
inputconst float32_t *inPointer to the input matrix stored as `num_rows` rows of `row_size` values.
num_rowsint32_tinNumber of rows in the input matrix.
row_sizeint32_tinNumber of columns per row.
outputfloat32_t *outPointer to the output matrix.
Returns of arm_softmax_f32
Description
`ARM_CMSIS_NN_SUCCESS` on success or `ARM_CMSIS_NN_ARG_ERROR` on invalid arguments.
function

Softmax using the float-native API signature.

Include/arm_nnfunctions_flt.h:3640

arm_cmsis_nn_status arm_softmax_f16(const float16_t *input, int32_t num_rows, int32_t row_size, float16_t *output)

Softmax using the float-native API signature.

Parameters of arm_softmax_f16
NameTypeDirectionDescription
inputconst float16_t *inPointer to the input matrix stored as `num_rows` rows of `row_size` values.
num_rowsint32_tinNumber of rows in the input matrix.
row_sizeint32_tinNumber of columns per row.
outputfloat16_t *outPointer to the output matrix.
Returns of arm_softmax_f16
Description
`ARM_CMSIS_NN_SUCCESS` on success or `ARM_CMSIS_NN_ARG_ERROR` on invalid arguments.