LIBML Version 4.1.9
LIBML NN Software Library
Loading...
Searching...
No Matches
tpt_depthwise_conv_wrapper_s8_s8_s8_asym.c File Reference
#include "tpt_math_nn.h"
Include dependency graph for tpt_depthwise_conv_wrapper_s8_s8_s8_asym.c:

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.

Function Documentation

◆ tpt_depthwise_conv_wrapper_s8_s8_s8_asym()

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.

Parameters
aOut_tesorpointer of output tensor
aIn_tensorpointer of the input tensor
aKernelpointer of kernel weights
aBiaspointer of the bias vector
aConv_paramsconvolution parameters (e.g. strides,pads,...) range of aConv_params->input_offset : [-127, 128] range of aConv_params->output_offset : [-128, 127]
aQuant_paramsper-channel quantization infoit contains the multiplier and shift values to be applied to each output channel
aConv_dimstensor dimensions
aTmp_bufdummy
Returns
tpt_nn_status

◆ tpt_depthwise_conv_wrapper_s8_s8_s8_asym_get_buffer_size()

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.

Parameters
aIn_tensor_cnumber of input tensor channels
ch_multmultiplier of input tensor channels
aKer_wx dimension of the filter kernel
aKer_hy dimension of the filter kernel
padding_wpadding size in the x dimension
Returns
int32_t