Function arm_convolve_wrapper_s16_get_buffer_size¶
Defined in File arm_nnfunctions.h
Function Documentation¶
-
int32_t arm_convolve_wrapper_s16_get_buffer_size(const cmsis_nn_conv_params *conv_params, const cmsis_nn_dims *input_dims, const cmsis_nn_dims *filter_dims, const cmsis_nn_dims *output_dims)¶
Get the required buffer size for arm_convolve_wrapper_s16.
An out-of-range shape is reported as -1 rather than a wrapped size. Where this function composes sub-sizer results, the sentinel is propagated before any ARM_NN_MAX() or sum, so it can never collapse into a plausible positive size.
- Parameters:
conv_params – [in] Convolution parameters (e.g. strides, dilations, pads,…). conv_params->input_offset : Not used conv_params->output_offset : Not used
input_dims – [in] Input (activation) dimensions. Format: [N, H, W, C_IN]
filter_dims – [in] Filter dimensions. Format: [C_OUT, HK, WK, C_IN] where HK and WK are the spatial filter dimensions
output_dims – [in] Output tensor dimensions. Format: [N, H, W, C_OUT]
- Returns:
The function returns required buffer size in bytes, or -1 if any dimension it reads is negative or the required size would not fit in an int32_t