![]() |
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_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. | |
| 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.
| 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_w | convolution stride in the w dimension |
| stride_h | convolution stride in the h dimension |
| padding_w | padding size in the w dimension |
| padding_h | padding size in the h dimension |
| bias_lshift | left shift amount for the bias |
| out_rshift | right shift amount for the output |
| input_w | w dimension of the input tensor |
| input_h | h dimension of the input tensor |
| input_c | number of input tensor channels |
| ker_w | w dimension of the filter kernel |
| ker_h | h dimension of the filter kernel |
| output_w | w dimension of the output tensor |
| output_h | h 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 "2 * in_tensor_ch * ker_dim_x * ker_dim_y". |