CMSIS-NN  
CMSIS NN Software Library
Fully Connected

Functions

arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s16 (const int16_t *lhs, const int8_t *rhs, const int64_t *bias, int16_t *dst, const int32_t dst_multiplier, const int32_t dst_shift, const int32_t rhs_cols, const int32_t rhs_rows, const int32_t activation_min, const int32_t activation_max)
 s16 Vector by Matrix (transposed) multiplication More...
 
arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s4 (const int8_t *lhs, const int8_t *packed_rhs, const int32_t *bias, int8_t *dst, const int32_t lhs_offset, const int32_t dst_offset, const int32_t dst_multiplier, const int32_t dst_shift, const int32_t rhs_cols, const int32_t rhs_rows, const int32_t activation_min, const int32_t activation_max, const int32_t address_offset)
 s4 Vector by Matrix (transposed) multiplication More...
 
arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s8 (const int8_t *lhs, const int8_t *rhs, const int32_t *kernel_sum, const int32_t *bias, int8_t *dst, const int32_t lhs_offset, const int32_t dst_offset, const int32_t dst_multiplier, const int32_t dst_shift, const int32_t rhs_cols, const int32_t rhs_rows, const int32_t activation_min, const int32_t activation_max, const int32_t address_offset)
 s8 Vector by Matrix (transposed) multiplication More...
 
arm_cmsis_nn_status arm_nn_vec_mat_mult_t_svdf_s8 (const int8_t *lhs, const int8_t *rhs, int16_t *dst, const int32_t lhs_offset, const int32_t dst_offset, const int32_t dst_multiplier, const int32_t dst_shift, const int32_t rhs_cols, const int32_t rhs_rows, const int32_t activation_min, const int32_t activation_max)
 s8 Vector by Matrix (transposed) multiplication with s16 output More...
 

Description

Support functions for Fully Connected

Function Documentation

◆ arm_nn_vec_mat_mult_t_s16()

arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s16 ( const int16_t *  lhs,
const int8_t *  rhs,
const int64_t *  bias,
int16_t *  dst,
const int32_t  dst_multiplier,
const int32_t  dst_shift,
const int32_t  rhs_cols,
const int32_t  rhs_rows,
const int32_t  activation_min,
const int32_t  activation_max 
)
Parameters
[in]lhsInput left-hand side vector
[in]rhsInput right-hand side matrix (transposed)
[in]biasInput bias
[out]dstOutput vector
[in]dst_multiplierOutput multiplier
[in]dst_shiftOutput shift
[in]rhs_colsNumber of columns in the right-hand side input matrix
[in]rhs_rowsNumber of rows in the right-hand side input matrix
[in]activation_minMinimum value to clamp the output to. Range: int16
[in]activation_maxMaximum value to clamp the output to. Range: int16
Returns
The function returns ARM_CMSIS_NN_SUCCESS

◆ arm_nn_vec_mat_mult_t_s4()

arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s4 ( const int8_t *  lhs,
const int8_t *  packed_rhs,
const int32_t *  bias,
int8_t *  dst,
const int32_t  lhs_offset,
const int32_t  dst_offset,
const int32_t  dst_multiplier,
const int32_t  dst_shift,
const int32_t  rhs_cols,
const int32_t  rhs_rows,
const int32_t  activation_min,
const int32_t  activation_max,
const int32_t  address_offset 
)
Parameters
[in]lhsInput left-hand side vector
[in]packed_rhsInput right-hand side matrix (transposed)
[in]biasInput bias
[out]dstOutput vector
[in]lhs_offsetOffset to be added to the input values of the left-hand side vector. Range: -127 to 128
[in]dst_offsetOffset to be added to the output values. Range: -127 to 128
[in]dst_multiplierOutput multiplier
[in]dst_shiftOutput shift
[in]rhs_colsNumber of columns in the right-hand side input matrix
[in]rhs_rowsNumber of rows in the right-hand side input matrix
[in]activation_minMinimum value to clamp the output to. Range: int8
[in]activation_maxMaximum value to clamp the output to. Range: int8
[in]address_offsetMemory position offset for dst. First output is stored at 'dst', the second at 'dst + address_offset' and so on. Default value is typically 1.
Returns
The function returns ARM_CMSIS_NN_SUCCESS

◆ arm_nn_vec_mat_mult_t_s8()

arm_cmsis_nn_status arm_nn_vec_mat_mult_t_s8 ( const int8_t *  lhs,
const int8_t *  rhs,
const int32_t *  kernel_sum,
const int32_t *  bias,
int8_t *  dst,
const int32_t  lhs_offset,
const int32_t  dst_offset,
const int32_t  dst_multiplier,
const int32_t  dst_shift,
const int32_t  rhs_cols,
const int32_t  rhs_rows,
const int32_t  activation_min,
const int32_t  activation_max,
const int32_t  address_offset 
)
Parameters
[in]lhsInput left-hand side vector
[in]rhsInput right-hand side matrix (transposed)
[in]kernel_sumKernel sums of the kernels (rhs). See arm_vector_sum_s8 for more info.
[in]biasInput bias
[out]dstOutput vector
[in]lhs_offsetOffset to be added to the input values of the left-hand side vector. Range: -127 to 128
[in]dst_offsetOffset to be added to the output values. Range: -127 to 128
[in]dst_multiplierOutput multiplier
[in]dst_shiftOutput shift
[in]rhs_colsNumber of columns in the right-hand side input matrix
[in]rhs_rowsNumber of rows in the right-hand side input matrix
[in]activation_minMinimum value to clamp the output to. Range: int8
[in]activation_maxMaximum value to clamp the output to. Range: int8
[in]address_offsetMemory position offset for dst. First output is stored at 'dst', the second at 'dst + address_offset' and so on. Default value is typically 1.
Returns
The function returns ARM_CMSIS_NN_SUCCESS

◆ arm_nn_vec_mat_mult_t_svdf_s8()

arm_cmsis_nn_status arm_nn_vec_mat_mult_t_svdf_s8 ( const int8_t *  lhs,
const int8_t *  rhs,
int16_t *  dst,
const int32_t  lhs_offset,
const int32_t  scatter_offset,
const int32_t  dst_multiplier,
const int32_t  dst_shift,
const int32_t  rhs_cols,
const int32_t  rhs_rows,
const int32_t  activation_min,
const int32_t  activation_max 
)
Parameters
[in]lhsInput left-hand side vector
[in]rhsInput right-hand side matrix (transposed)
[out]dstOutput vector
[in]lhs_offsetOffset to be added to the input values of the left-hand side vector. Range: -127 to 128
[in]scatter_offsetAddress offset for dst. First output is stored at 'dst', the second at 'dst + scatter_offset' and so on.
[in]dst_multiplierOutput multiplier
[in]dst_shiftOutput shift
[in]rhs_colsNumber of columns in the right-hand side input matrix
[in]rhs_rowsNumber of rows in the right-hand side input matrix
[in]activation_minMinimum value to clamp the output to. Range: int16
[in]activation_maxMaximum value to clamp the output to. Range: int16
Returns
The function returns ARM_CMSIS_NN_SUCCESS