Function arm_nn_activation_s16¶
Defined in File arm_nnfunctions.h
Function Documentation¶
-
arm_cmsis_nn_status arm_nn_activation_s16(const int16_t *input, int16_t *output, const int32_t size, const int32_t left_shift, const arm_nn_activation_type type)¶
s16 neural network activation function using direct table look-up
Supported framework: TensorFlow Lite for Microcontrollers. This activation function must be bit precise congruent with the corresponding TFLM tanh and sigmoid activation functions
- Parameters:
input – [in] pointer to input data
output – [out] pointer to output
size – [in] number of elements
left_shift – [in] bit-width of the integer part, assumed to be smaller than 3.
type – [in] type of activation functions
- Returns:
The function returns
ARM_CMSIS_NN_SUCCESS