CMSIS-NN  
CMSIS NN Software Library
 
Loading...
Searching...
No Matches
Data Conversion

Functions

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

Description

// end group groupPrivTypes

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,
int32_t  block_size,
int16_t  offset 
)

Converts the elements from a s8 vector to a s16 vector with an added offset.

Parameters
[in]srcpointer to the s8 input vector
[out]dstpointer to the s16 output vector
[in]block_sizelength of the input vector
[in]offsets16 offset to be added to each input vector element.
Description:

Output elements are ordered. The equation used for the conversion process is:

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