CMSIS-NN  
CMSIS NN Software Library
Data Conversion

Functions

void arm_q7_to_q15_with_offset (const int8_t *src, int16_t *dst, uint32_t block_size, int16_t offset)
 Converts the elements from a s8 vector to a s16 vector with an added offset. More...
 

Description

Perform data type conversion in-between neural network operations

Function Documentation

◆ arm_q7_to_q15_with_offset()

void arm_q7_to_q15_with_offset ( const int8_t *  src,
int16_t *  dst,
uint32_t  block_size,
int16_t  offset 
)
Parameters
[in]srcpointer to the s8 input vector
[out]dstpointer to the s16 output vector
[in]block_sizelength of the input vector
[in]offsets8 offset to be added to each input vector element.
Description:

The equation used for the conversion process is:

 dst[n] = (int16_t) src[n] + offset;   0 <= n < block_size.