![]() |
LIBML Version 4.1.9
LIBML NN Software Library
|
#include "tpt_math_nn.h"
Functions | |
| tpt_nn_status | tpt_convolve_wrapper_s16_s16_s8_asym (q15_t *aOut_tensor, const q15_t *aIn_tensor, const q7_t *aKernel, const int64_t *aBias, const tpt_nn_conv_asym_wrapper_params *aConv_params, const tpt_nn_per_channel_quant_params *aQuant_params, const tpt_nn_asym_dims *aConv_dims, q15_t *aTmp_buf) |
| This is a wrapper function for tpt_convolve_s16_s16_s8_asym_bias_any. This function calls one of the one convolution functions according to the provided parameters. | |
| int32_t | tpt_convolve_wrapper_s16_s16_s8_asym_get_buffer_size (const int32_t aIn_tensor_c, const int32_t aKer_dim_w, const int32_t aKer_dim_h) |
| This function is used to obtain the required size, in bytes, for the input temporary buffer of tpt_convolve_wrapper_s16_s16_s8_asym. | |
| tpt_nn_status tpt_convolve_wrapper_s16_s16_s8_asym | ( | q15_t * | aOut_tensor, |
| const q15_t * | aIn_tensor, | ||
| const q7_t * | aKernel, | ||
| const int64_t * | aBias, | ||
| const tpt_nn_conv_asym_wrapper_params * | aConv_params, | ||
| const tpt_nn_per_channel_quant_params * | aQuant_params, | ||
| const tpt_nn_asym_dims * | aConv_dims, | ||
| q15_t * | aTmp_buf ) |
This is a wrapper function for tpt_convolve_s16_s16_s8_asym_bias_any. This function calls one of the one convolution functions according to the provided parameters.
| aOut_tesor | pointer of output tensor |
| aIn_tensor | pointer of the input tensor |
| aKernel | pointer of kernel weights |
| aBias | pointer of the bias vector |
| aConv_params | convolution parameters (e.g. strides,pads,...) range of aConv_params->input_offset : dummy range of aConv_params->output_offset : dummy range of aConv_params->activative_min : -32768 to
|
| aQuant_params | per-channel quantization infoit contains the multiplier and shift values to be applied to each output channel |
| aConv_dims | tensor dimensions |
| aTmp_buf | dummy |
| int32_t tpt_convolve_wrapper_s16_s16_s8_asym_get_buffer_size | ( | const int32_t | aIn_tensor_c, |
| const int32_t | aKer_dim_w, | ||
| const int32_t | aKer_dim_h ) |
This function is used to obtain the required size, in bytes, for the input temporary buffer of tpt_convolve_wrapper_s16_s16_s8_asym.
| aIn_tensor_c | number of input tensor channels |
| aKer_dim_w | w dimension of the filter kernel |
| aKer_dim_h | h dimension of the filter kernel |