1 /*
2  * Copyright (C) 2022 Arm Limited or its affiliates.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Licensed under the Apache License, Version 2.0 (the License); you may
7  * not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 /* ----------------------------------------------------------------------
20  * Project:      CMSIS NN Library
21  * Title:        arm_softmax_s8_s16.c
22  * Description:  S8 to s16 softmax function
23  *
24  * $Date:        7 January 2022
25  * $Revision:    V.1.0.0
26  *
27  * Target Processor:  Cortex-M cores
28  *
29  * -------------------------------------------------------------------- */
30 
31 #include "arm_nnfunctions.h"
32 #include "arm_nnsupportfunctions.h"
33 
34 /**
35  *  @ingroup Public
36  */
37 
38 /**
39  * @addtogroup Softmax
40  * @{
41  */
42 
arm_softmax_s8_s16(const int8_t * input,const int32_t num_rows,const int32_t row_size,const int32_t mult,const int32_t shift,const int32_t diff_min,int16_t * output)43 void arm_softmax_s8_s16(const int8_t *input,
44                         const int32_t num_rows,
45                         const int32_t row_size,
46                         const int32_t mult,
47                         const int32_t shift,
48                         const int32_t diff_min,
49                         int16_t *output)
50 {
51     arm_nn_softmax_common_s8(input, num_rows, row_size, mult, shift, diff_min, true, (void *)output);
52 }
53 /**
54  * @} end of Softmax group
55  */
56