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

Functions

tpt_nn_status tpt_convolve_s16_s16_s16_sft_bias_fast (q15_t *aOut_tesor, const q15_t *aIn_tensor, const q15_t *aKernel, const q15_t *aBias, const uint16_t stride, const uint16_t padding, const uint16_t bias_lshift, const uint16_t out_rshift, const uint16_t input_dim, const uint16_t input_c, const uint16_t ker_dim, const uint16_t output_dim, const uint16_t output_c, q15_t *aTmp_buf)
 This function performs fast signed 16-bit integer convolution with shift-based quantization on the outputs.

Function Documentation

◆ tpt_convolve_s16_s16_s16_sft_bias_fast()

tpt_nn_status tpt_convolve_s16_s16_s16_sft_bias_fast ( q15_t * aOut_tesor,
const q15_t * aIn_tensor,
const q15_t * aKernel,
const q15_t * aBias,
const uint16_t stride,
const uint16_t padding,
const uint16_t bias_lshift,
const uint16_t out_rshift,
const uint16_t input_dim,
const uint16_t input_c,
const uint16_t ker_dim,
const uint16_t output_dim,
const uint16_t output_c,
q15_t * aTmp_buf )

This function performs fast signed 16-bit integer convolution with shift-based quantization on the outputs.

Parameters
aOut_tesorpointer of the output tensor
aIn_tensorpointer of the input tensor
aKernelpointer of kernel weights
aBiaspointer of the bias vector
strideconvolution stride
paddingpadding size
bias_lshiftleft shift amount for the bias
out_rshiftright shift amount for the output
input_dimdimension of the input tensor
input_cnumber of input tensor channels
ker_dimdimension of the filter kernel
output_dimdimension of the output tensor
output_cnumber of output tensor channels
aTmp_buftemporary buffer for the input tensor.Its size must be equal to "in_tensor_ch * ker_dim * ker_dim".
Returns
tpt_nn_status
Note
The input constraints of this function are:
  • input_c is a multiple of 2
  • output_c is a multiple of 2