| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /*
- * SPDX-FileCopyrightText: Copyright 2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the License); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- /* ----------------------------------------------------------------------
- * Project: CMSIS NN Library
- * Title: arm_svdf_get_buffer_sizes_s8.c
- * Description: Collection of get buffer size functions for svdf s8 layer function.
- *
- * $Date: 5 September 2023
- * $Revision: V.1.0.0
- *
- * Target : Arm(R) M-Profile Architecture
- *
- * -------------------------------------------------------------------- */
- #include "arm_nnfunctions.h"
- /**
- * @ingroup SVDF
- */
- /**
- * @addtogroup GetBufferSizeSVDF
- * @{
- */
- int32_t arm_svdf_s8_get_buffer_size_dsp(const cmsis_nn_dims *weights_feature_dims)
- {
- (void)weights_feature_dims;
- return 0;
- }
- int32_t arm_svdf_s8_get_buffer_size_mve(const cmsis_nn_dims *weights_feature_dims)
- {
- return weights_feature_dims->n * sizeof(int32_t);
- }
- int32_t arm_svdf_s8_get_buffer_size(const cmsis_nn_dims *weights_feature_dims)
- {
- #if defined(ARM_MATH_MVEI)
- return arm_svdf_s8_get_buffer_size_mve(weights_feature_dims);
- #else
- return arm_svdf_s8_get_buffer_size_dsp(weights_feature_dims);
- #endif
- }
- /**
- * @} end of GetBufferSizeSVDF group
- */
|