![]() |
LIBML Version 4.1.9
LIBML NN Software Library
|
#include "tpt_math_nn.h"
Functions | |
| tpt_nn_status | tpt_depthwise_conv_wrapper_s8_s8_s8_asym (q7_t *aOut_tensor, const q7_t *aIn_tensor, const q7_t *aKernel, const int32_t *aBias, const tpt_nn_dw_conv_asym_params *aConv_params, const tpt_nn_per_channel_quant_params *aQuant_params, const tpt_nn_dw_conv_asym_dims *aConv_dims, q15_t *aTmp_buf) |
| This is a wrapper function for tpt_depthwise_conv_3x3_s8_s8_s8_asym_bias_any, tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any, tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any.This function calls one among the three depthwise convolution functions according to the provided parameters. | |
| int32_t | tpt_depthwise_conv_wrapper_s8_s8_s8_asym_get_buffer_size (const uint16_t aIn_tensor_c, const uint16_t ch_mult, const uint16_t aKer_w, const uint16_t aKer_h, const uint16_t padding_w) |
| This function is used to obtain the required size, in bytes,for the input temporary buffer of tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any_get_buffer_size. | |
| tpt_nn_status tpt_depthwise_conv_wrapper_s8_s8_s8_asym | ( | q7_t * | aOut_tensor, |
| const q7_t * | aIn_tensor, | ||
| const q7_t * | aKernel, | ||
| const int32_t * | aBias, | ||
| const tpt_nn_dw_conv_asym_params * | aConv_params, | ||
| const tpt_nn_per_channel_quant_params * | aQuant_params, | ||
| const tpt_nn_dw_conv_asym_dims * | aConv_dims, | ||
| q15_t * | aTmp_buf ) |
This is a wrapper function for tpt_depthwise_conv_3x3_s8_s8_s8_asym_bias_any, tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any, tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any.This function calls one among the three depthwise 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 : [-127, 128] range of aConv_params->output_offset : [-128, 127] |
| 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_depthwise_conv_wrapper_s8_s8_s8_asym_get_buffer_size | ( | const uint16_t | aIn_tensor_c, |
| const uint16_t | ch_mult, | ||
| const uint16_t | aKer_w, | ||
| const uint16_t | aKer_h, | ||
| const uint16_t | padding_w ) |
This function is used to obtain the required size, in bytes,for the input temporary buffer of tpt_depthwise_conv_s8_s8_s8_asym_bias_fast_any_get_buffer_size.
| aIn_tensor_c | number of input tensor channels |
| ch_mult | multiplier of input tensor channels |
| aKer_w | x dimension of the filter kernel |
| aKer_h | y dimension of the filter kernel |
| padding_w | padding size in the x dimension |