Function arm_depthwise_conv_fast_s16_get_buffer_size¶
Defined in File arm_nnfunctions.h
Function Documentation¶
-
int32_t arm_depthwise_conv_fast_s16_get_buffer_size(const cmsis_nn_dims *input_dims, const cmsis_nn_dims *filter_dims)¶
Get the required buffer size for optimized s16 depthwise convolution function with constraint that in_channel equals out_channel.
The dimensions are checked here, so a negative dimension returns -1 on every build target. The byte count is range-checked inside the selected leg instead, because the Helium and DSP legs use different formulas and the plain-C build needs no buffer at all.
- Parameters:
input_dims – [in] Input (activation) tensor dimensions. Format: [1, H, W, C_IN] Batch argument N is not used.
filter_dims – [in] Filter tensor dimensions. Format: [1, 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