![]() |
LIBML Version 4.1.9
LIBML NN Software Library
|
#include "tpt_math_nn.h"
Functions | |
| tpt_nn_status | tpt_convolve_s16_s16_s16_sft_bias (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 signed 16-bit integer convolution with shift-based quantization on the outputs. | |
| tpt_nn_status tpt_convolve_s16_s16_s16_sft_bias | ( | 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 signed 16-bit integer convolution with shift-based quantization on the outputs.
| aOut_tesor | pointer of the output tensor |
| aIn_tensor | pointer of the input tensor |
| aKernel | pointer of kernel weights |
| aBias | pointer of the bias vector |
| stride | convolution stride |
| padding | padding size |
| bias_lshift | left shift amount for the bias |
| out_rshift | right shift amount for the output |
| input_dim | dimension of the input tensor |
| input_c | number of input tensor channels |
| ker_dim | dimension of the filter kernel |
| output_dim | dimension of the output tensor |
| output_c | number of output tensor channels |
| aTmp_buf | temporary buffer for the input tensor.Its size must be equal to "in_tensor_ch * ker_dim * ker_dim". |