CMSIS-NN  
CMSIS NN Software Library
 
Loading...
Searching...
No Matches
BasicMath

Functions

arm_cmsis_nn_status arm_elementwise_mul_s16_s8 (const int16_t *input_1_vect, const int16_t *input_2_vect, int8_t *output, const int32_t out_offset, const int32_t out_mult, const int32_t out_shift, const int32_t block_size, const int32_t batch_size, const int32_t batch_offset)
 s16 elementwise multiplication with s8 output
 

Description

Function Documentation

◆ arm_elementwise_mul_s16_s8()

arm_cmsis_nn_status arm_elementwise_mul_s16_s8 ( const int16_t *  input_1_vect,
const int16_t *  input_2_vect,
int8_t *  output,
const int32_t  out_offset,
const int32_t  out_mult,
const int32_t  out_shift,
const int32_t  block_size,
const int32_t  batch_size,
const int32_t  batch_offset 
)

s16 elementwise multiplication with s8 output

Parameters
[in]input_1_vectpointer to input vector 1
[in]input_2_vectpointer to input vector 2
[in,out]outputpointer to output vector
[in]out_offsetoutput offset
[in]out_multoutput multiplier
[in]out_shiftoutput shift
[in]block_sizenumber of samples per batch
[in]batch_sizenumber of samples per batch
[in]batch_offsetNumber of timesteps between consecutive batches in output, see arm_nn_lstm_step_s8. Note that it is assumed that the input is stored with sequential batches.
Returns
The function returns ARM_CMSIS_NN_SUCCESS

Supported framework: TensorFlow Lite micro