Function arm_svdf_s8_get_buffer_size¶
Defined in File arm_nnfunctions.h
Function Documentation¶
-
int32_t arm_svdf_s8_get_buffer_size(const cmsis_nn_dims *weights_feature_dims)¶
Get size of the kernel-sum buffer required by arm_svdf_s8().
For a valid (non-negative, in-range) weights_feature_dims->n, returns weights_feature_dims->n * sizeof(int32_t) on builds with the MVE extension and 0 elsewhere. For an invalid weights_feature_dims->n, returns -1 on every build target. arm_svdf_s8() has no filter_dims argument, and the buffer is indexed by weights_feature_dims->n, so no other cmsis_nn_dims of that call can size it - in particular arm_fully_connected_s8_get_buffer_size() reads a different field and under-allocates. See arm_svdf_s8() for the buffer’s layout, how to fill it and when it may be reused.
- Parameters:
weights_feature_dims – [in] dimensions of the weights (feature) tensor, i.e. the same cmsis_nn_dims passed to arm_svdf_s8()
- Returns:
The function returns required buffer size in bytes, or -1 if weights_feature_dims->n is negative or the required size would not fit in an int32_t