![]() |
NMSIS-NN
Version 1.4.1
NMSIS NN Software Library
|
Functions | |
| void | riscv_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. More... | |
// end group groupPrivTypes
Perform data type conversion in-between neural network operations
| void riscv_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.
| [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 | s16 offset to be added to each input vector element. |
Output elements are ordered. The equation used for the conversion process is:
dst[n] = (int16_t) src[n] + offset; 0 <= n < block_size.