CMSIS-NN
CMSIS NN Software Library
|
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... | |
Perform data type conversion in-between neural network operations
void arm_q7_to_q15_with_offset | ( | const int8_t * | src, |
int16_t * | dst, | ||
uint32_t | block_size, | ||
int16_t | offset | ||
) |
[in] | src | pointer to the s8 input vector |
[out] | dst | pointer to the s16 output vector |
[in] | block_size | length of the input vector |
[in] | offset | s8 offset to be added to each input vector element. |
The equation used for the conversion process is:
dst[n] = (int16_t) src[n] + offset; 0 <= n < block_size.