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

Functions

tpt_nn_status tpt_convolve_s16_s16_s16_sft_bias_fast_any (q15_t *aOut_tesor, const q15_t *aIn_tensor, const q15_t *aKernel, const q15_t *aBias, const uint16_t stride_w, const uint16_t stride_h, const uint16_t padding_w, const uint16_t padding_h, const uint16_t bias_lshift, const uint16_t out_rshift, const uint16_t input_w, const uint16_t input_h, const uint16_t input_c, const uint16_t ker_w, const uint16_t ker_h, const uint16_t output_w, const uint16_t output_h, uint16_t output_c, q15_t *aTmp_buf)
 This function performs fast signed 16-bit integer convolution in any w and h dimensions with shift-based quantization on the outputs.

Function Documentation

◆ tpt_convolve_s16_s16_s16_sft_bias_fast_any()

tpt_nn_status tpt_convolve_s16_s16_s16_sft_bias_fast_any ( q15_t * aOut_tesor,
const q15_t * aIn_tensor,
const q15_t * aKernel,
const q15_t * aBias,
const uint16_t stride_w,
const uint16_t stride_h,
const uint16_t padding_w,
const uint16_t padding_h,
const uint16_t bias_lshift,
const uint16_t out_rshift,
const uint16_t input_w,
const uint16_t input_h,
const uint16_t input_c,
const uint16_t ker_w,
const uint16_t ker_h,
const uint16_t output_w,
const uint16_t output_h,
uint16_t output_c,
q15_t * aTmp_buf )

This function performs fast signed 16-bit integer convolution in any w and h dimensions 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
stride_wconvolution stride in the w dimension
stride_hconvolution stride in the h dimension
padding_wpadding size in the w dimension
padding_hpadding size in the h dimension
bias_lshiftleft shift amount for the bias
out_rshiftright shift amount for the output
input_ww dimension of the input tensor
input_hh dimension of the input tensor
input_cnumber of input tensor channels
ker_ww dimension of the filter kernel
ker_hh dimension of the filter kernel
output_ww dimension of the output tensor
output_hh dimension of the output tensor
output_cnumber of output tensor channels
aTmp_buftemporary buffer for the input tensor.Its size must be equal to "2 * in_tensor_ch * ker_dim_x * ker_dim_y".
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