![]() |
LIBML Version 4.1.9
LIBML NN Software Library
|
The pooling functions are used to downsample input data. They include max and average pooling functions. More...
Functions | |
| tpt_nn_status | tpt_avgpool_s16_any_act (int16_t *aOut_tensor, int16_t *aIn_tensor, const tpt_nn_avgpool_params_act_s16 *aPool_params, const tpt_nn_avgpool_dims_act_s16 *aPool_dims, int16_t *in_tmp_buf) |
| This is an average pooling function for signed 16-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs. | |
| tpt_nn_status | tpt_avgpool_s8 (int8_t *aOut_tensor, int8_t *aIn_tensor, const uint16_t stride, const uint16_t padding, const uint16_t in_tensor_dim, const uint16_t in_tensor_c, const uint16_t Kernel_dim, const uint16_t out_tensor_dim, int8_t *in_tmp_buf) |
| This is an average pooling function for signed 8-bit integer inputs. | |
| tpt_nn_status | tpt_avgpool_s8_any (int8_t *aOut_tensor, int8_t *aIn_tensor, const tpt_nn_avgpool_params_any_s8 *aPool_params, const tpt_nn_avgpool_dims_any_s8 *aPool_dims, const uint16_t out_lshift, int8_t *in_tmp_buf) |
| This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions. | |
| tpt_nn_status | tpt_avgpool_s8_any_act (int8_t *aOut_tensor, int8_t *aIn_tensor, const tpt_nn_avgpool_params_act_s8 *aPool_params, const tpt_nn_avgpool_dims_act_s8 *aPool_dims, int16_t *in_tmp_buf) |
| This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs. | |
| int32_t | tpt_avgpool_s8_any_act_get_buffer_size (const int aOut_tensor_dim_w, const int aIn_tensor_c) |
| This function is used to obtain the required size, in bytes, for the input temporary buffer of tpt_avgpool_s8_any_act. | |
| tpt_nn_status | tpt_maxpool_s16_any_act (int16_t *aOut_tensor, int16_t *aIn_tensor, const tpt_nn_maxpool_params_act_s16 *aPool_params, const tpt_nn_maxpool_dims_act_s16 *aPool_dims, int16_t *in_tmp_buf) |
| This is an average pooling function for signed 16-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs. | |
| tpt_nn_status | tpt_maxpool_s8 (int8_t *aOut_tensor, int8_t *aIn_tensor, const uint16_t in_tensor_dim, const uint16_t in_tensor_c, const uint16_t ker_dim, const uint16_t out_tensor_dim, const uint16_t padding, const uint16_t stride, int8_t *in_tmp_buf) |
| This is a max pooling function for signed 8-bit integer inputs. | |
| tpt_nn_status | tpt_maxpool_s8_any_act (int8_t *aOut_tensor, int8_t *aIn_tensor, const tpt_nn_maxpool_params_act_s8 *aPool_params, const tpt_nn_maxpool_dims_act_s8 *aPool_dims, int16_t *in_tmp_buf) |
| This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs. | |
The pooling functions are used to downsample input data. They include max and average pooling functions.
| tpt_nn_status tpt_avgpool_s16_any_act | ( | int16_t * | aOut_tensor, |
| int16_t * | aIn_tensor, | ||
| const tpt_nn_avgpool_params_act_s16 * | aPool_params, | ||
| const tpt_nn_avgpool_dims_act_s16 * | aPool_dims, | ||
| int16_t * | in_tmp_buf ) |
This is an average pooling function for signed 16-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs.
S16 average pooling function. Refer to header file for details.
| tpt_nn_status tpt_avgpool_s8 | ( | int8_t * | aOut_tensor, |
| int8_t * | aIn_tensor, | ||
| const uint16_t | stride, | ||
| const uint16_t | padding, | ||
| const uint16_t | in_tensor_dim, | ||
| const uint16_t | in_tensor_c, | ||
| const uint16_t | Kernel_dim, | ||
| const uint16_t | out_tensor_dim, | ||
| int8_t * | in_tmp_buf ) |
This is an average pooling function for signed 8-bit integer inputs.
S8 average pooling function. Refer to header file for details.
| tpt_nn_status tpt_avgpool_s8_any | ( | int8_t * | aOut_tensor, |
| int8_t * | aIn_tensor, | ||
| const tpt_nn_avgpool_params_any_s8 * | aPool_params, | ||
| const tpt_nn_avgpool_dims_any_s8 * | aPool_dims, | ||
| const uint16_t | out_lshift, | ||
| int8_t * | in_tmp_buf ) |
This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions.
S8 average pooling function. Refer to header file for details.
| tpt_nn_status tpt_avgpool_s8_any_act | ( | int8_t * | aOut_tensor, |
| int8_t * | aIn_tensor, | ||
| const tpt_nn_avgpool_params_act_s8 * | aPool_params, | ||
| const tpt_nn_avgpool_dims_act_s8 * | aPool_dims, | ||
| int16_t * | in_tmp_buf ) |
This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs.
S8 average pooling function. Refer to header file for details.
| int32_t tpt_avgpool_s8_any_act_get_buffer_size | ( | const int | aOut_tensor_dim_w, |
| const int | aIn_tensor_c ) |
This function is used to obtain the required size, in bytes, for the input temporary buffer of tpt_avgpool_s8_any_act.
| aOut_tensor_dim_w | w dimension of the output tensor |
| aIn_tensor_c | number of input tensor channels |
| tpt_nn_status tpt_maxpool_s16_any_act | ( | int16_t * | aOut_tensor, |
| int16_t * | aIn_tensor, | ||
| const tpt_nn_maxpool_params_act_s16 * | aPool_params, | ||
| const tpt_nn_maxpool_dims_act_s16 * | aPool_dims, | ||
| int16_t * | in_tmp_buf ) |
This is an average pooling function for signed 16-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs.
S16 max pooling function. Refer to header file for details.
| tpt_nn_status tpt_maxpool_s8 | ( | int8_t * | aOut_tensor, |
| int8_t * | aIn_tensor, | ||
| const uint16_t | in_tensor_dim, | ||
| const uint16_t | in_tensor_c, | ||
| const uint16_t | ker_dim, | ||
| const uint16_t | out_tensor_dim, | ||
| const uint16_t | padding, | ||
| const uint16_t | stride, | ||
| int8_t * | in_tmp_buf ) |
This is a max pooling function for signed 8-bit integer inputs.
s8 max pooling function. Refer to header file for details.
| tpt_nn_status tpt_maxpool_s8_any_act | ( | int8_t * | aOut_tensor, |
| int8_t * | aIn_tensor, | ||
| const tpt_nn_maxpool_params_act_s8 * | aPool_params, | ||
| const tpt_nn_maxpool_dims_act_s8 * | aPool_dims, | ||
| int16_t * | in_tmp_buf ) |
This is an average pooling function for signed 8-bit integer inputs in any x and y dimensions with activation parameters to limit the outputs.
S8 max pooling function. Refer to header file for details.