function
Max pooling.
arm_cmsis_nn_status arm_max_pool_f32( const cmsis_nn_context *ctx, const cmsis_nn_pool_params_f32 *pool_params, const cmsis_nn_dims *input_dims, const float32_t *src, const cmsis_nn_dims *filter_dims, const cmsis_nn_dims *output_dims, float32_t *dst)Max pooling.
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
ctx | const cmsis_nn_context * | in, out | Function context that may hold a temporary scratch buffer. |
pool_params | const cmsis_nn_pool_params_f32 * | in | Pooling parameters (stride, padding and activation clamp). |
input_dims | const cmsis_nn_dims * | in | Input tensor dimensions. |
src | const float32_t * | in | Pointer to the input tensor data. |
filter_dims | const cmsis_nn_dims * | in | Pooling kernel dimensions. |
output_dims | const cmsis_nn_dims * | in | Output tensor dimensions. |
dst | float32_t * | out | Pointer to the output tensor data. |
Returns
| Description |
|---|
| `ARM_CMSIS_NN_SUCCESS` on success, including an output with no rows or no columns (an extent of 0 or less), which writes nothing; `ARM_CMSIS_NN_ARG_ERROR` on invalid arguments: a NULL pointer argument other than ctx, a batch count below 1, a pooling window that does not overlap the input, or window positions (output index * stride - padding, including one stride past the last window, plus the filter extent, and input size minus position) that do not fit in an int32_t. Nothing is written to dst then. |