Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Neural Network Pooling Functions
[Neural Network Functions]
Perform pooling functions, including max pooling and average pooling. More...
Functions | |
void | arm_maxpool_q7_HWC (q7_t *Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const uint16_t dim_im_out, q7_t *bufferA, q7_t *Im_out) |
Q7 max pooling function. | |
void | arm_avepool_q7_HWC (q7_t *Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const uint16_t dim_im_out, q7_t *bufferA, q7_t *Im_out) |
Q7 average pooling function. |
Detailed Description
Perform pooling functions, including max pooling and average pooling.
Function Documentation
void arm_avepool_q7_HWC | ( | q7_t * | Im_in, |
const uint16_t | dim_im_in, | ||
const uint16_t | ch_im_in, | ||
const uint16_t | dim_kernel, | ||
const uint16_t | padding, | ||
const uint16_t | stride, | ||
const uint16_t | dim_im_out, | ||
q7_t * | bufferA, | ||
q7_t * | Im_out | ||
) |
Q7 average pooling function.
- Parameters:
-
[in,out] Im_in pointer to input tensor [in] dim_im_in input tensor dimention [in] ch_im_in number of input tensor channels [in] dim_kernel filter kernel size [in] padding padding sizes [in] stride convolution stride [in] dim_im_out output tensor dimension [in,out] bufferA pointer to buffer space for input [in,out] Im_out pointer to output tensor
- Returns:
- none.
Buffer size:
bufferA size: 2*dim_im_out*ch_im_in
The pooling function is implemented as split x-pooling then y-pooling.
This pooling function is input-destructive. Input data is undefined after calling this function.
Definition at line 317 of file arm_pool_q7_HWC.c.
void arm_maxpool_q7_HWC | ( | q7_t * | Im_in, |
const uint16_t | dim_im_in, | ||
const uint16_t | ch_im_in, | ||
const uint16_t | dim_kernel, | ||
const uint16_t | padding, | ||
const uint16_t | stride, | ||
const uint16_t | dim_im_out, | ||
q7_t * | bufferA, | ||
q7_t * | Im_out | ||
) |
Q7 max pooling function.
- Parameters:
-
[in,out] Im_in pointer to input tensor [in] dim_im_in input tensor dimention [in] ch_im_in number of input tensor channels [in] dim_kernel filter kernel size [in] padding padding sizes [in] stride convolution stride [in] dim_im_out output tensor dimension [in,out] bufferA pointer to buffer space for input [in,out] Im_out pointer to output tensor
- Returns:
- none.
Buffer size:
bufferA size: 0
The pooling function is implemented as split x-pooling then y-pooling.
This pooling function is input-destructive. Input data is undefined after calling this function.
Definition at line 164 of file arm_pool_q7_HWC.c.
Generated on Tue Jul 12 2022 16:47:30 by
