Function arm_nn_softmax_floor_to_int_f32¶
Defined in File arm_nnsupportfunctions_flt.h
Function Documentation¶
-
static int32_t arm_nn_softmax_floor_to_int_f32(float32_t x)¶
Floor of
xas an int32_t.Precondition:
xmust already be reduced to the int32_t range and must not be NaN — the float-to-int conversion below is undefined otherwise. The only caller, arm_nn_softmax_exp_lut_f32(), guarantees this by clamping its input to [-80, 80] (NaN included, see there) before scaling by log2(e), which boundsxto +/-116.