Aded CMSIS5 DSP and NN folder. Needs some work

Committer:
robert_lp
Date:
Thu Apr 12 01:31:58 2018 +0000
Revision:
0:eedb7d567a5d
CMSIS5 Library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robert_lp 0:eedb7d567a5d 1 /* ----------------------------------------------------------------------
robert_lp 0:eedb7d567a5d 2 * Project: CMSIS NN Library
robert_lp 0:eedb7d567a5d 3 * Title: arm_nn_tables.h
robert_lp 0:eedb7d567a5d 4 * Description: Extern declaration for NN tables
robert_lp 0:eedb7d567a5d 5 *
robert_lp 0:eedb7d567a5d 6 * $Date: 17. January 2018
robert_lp 0:eedb7d567a5d 7 * $Revision: V.1.0.0
robert_lp 0:eedb7d567a5d 8 *
robert_lp 0:eedb7d567a5d 9 * Target Processor: Cortex-M cores
robert_lp 0:eedb7d567a5d 10 * -------------------------------------------------------------------- */
robert_lp 0:eedb7d567a5d 11 /*
robert_lp 0:eedb7d567a5d 12 * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved.
robert_lp 0:eedb7d567a5d 13 *
robert_lp 0:eedb7d567a5d 14 * SPDX-License-Identifier: Apache-2.0
robert_lp 0:eedb7d567a5d 15 *
robert_lp 0:eedb7d567a5d 16 * Licensed under the Apache License, Version 2.0 (the License); you may
robert_lp 0:eedb7d567a5d 17 * not use this file except in compliance with the License.
robert_lp 0:eedb7d567a5d 18 * You may obtain a copy of the License at
robert_lp 0:eedb7d567a5d 19 *
robert_lp 0:eedb7d567a5d 20 * www.apache.org/licenses/LICENSE-2.0
robert_lp 0:eedb7d567a5d 21 *
robert_lp 0:eedb7d567a5d 22 * Unless required by applicable law or agreed to in writing, software
robert_lp 0:eedb7d567a5d 23 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
robert_lp 0:eedb7d567a5d 24 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
robert_lp 0:eedb7d567a5d 25 * See the License for the specific language governing permissions and
robert_lp 0:eedb7d567a5d 26 * limitations under the License.
robert_lp 0:eedb7d567a5d 27 */
robert_lp 0:eedb7d567a5d 28
robert_lp 0:eedb7d567a5d 29 #ifndef _ARM_NN_TABLES_H
robert_lp 0:eedb7d567a5d 30 #define _ARM_NN_TABLES_H
robert_lp 0:eedb7d567a5d 31
robert_lp 0:eedb7d567a5d 32 #include "../../DSP/include/arm_math.h"
robert_lp 0:eedb7d567a5d 33
robert_lp 0:eedb7d567a5d 34 /**
robert_lp 0:eedb7d567a5d 35 * @brief tables for various activation functions
robert_lp 0:eedb7d567a5d 36 *
robert_lp 0:eedb7d567a5d 37 */
robert_lp 0:eedb7d567a5d 38
robert_lp 0:eedb7d567a5d 39 extern const q15_t sigmoidTable_q15[256];
robert_lp 0:eedb7d567a5d 40 extern const q7_t sigmoidTable_q7[256];
robert_lp 0:eedb7d567a5d 41
robert_lp 0:eedb7d567a5d 42 extern const q7_t tanhTable_q7[256];
robert_lp 0:eedb7d567a5d 43 extern const q15_t tanhTable_q15[256];
robert_lp 0:eedb7d567a5d 44
robert_lp 0:eedb7d567a5d 45 /**
robert_lp 0:eedb7d567a5d 46 * @brief 2-way tables for various activation functions
robert_lp 0:eedb7d567a5d 47 *
robert_lp 0:eedb7d567a5d 48 * 2-way table, H table for value larger than 1/4
robert_lp 0:eedb7d567a5d 49 * L table for value smaller than 1/4, H table for remaining
robert_lp 0:eedb7d567a5d 50 * We have this only for the q15_t version. It does not make
robert_lp 0:eedb7d567a5d 51 * sense to have it for q7_t type
robert_lp 0:eedb7d567a5d 52 */
robert_lp 0:eedb7d567a5d 53 extern const q15_t sigmoidHTable_q15[192];
robert_lp 0:eedb7d567a5d 54 extern const q15_t sigmoidLTable_q15[128];
robert_lp 0:eedb7d567a5d 55
robert_lp 0:eedb7d567a5d 56 extern const q15_t sigmoidLTable_q15[128];
robert_lp 0:eedb7d567a5d 57 extern const q15_t sigmoidHTable_q15[192];
robert_lp 0:eedb7d567a5d 58
robert_lp 0:eedb7d567a5d 59 #endif /* ARM_NN_TABLES_H */
robert_lp 0:eedb7d567a5d 60