Aded CMSIS5 DSP and NN folder. Needs some work
Embed:
(wiki syntax)
Show/hide line numbers
arm_nn_tables.h
00001 /* ---------------------------------------------------------------------- 00002 * Project: CMSIS NN Library 00003 * Title: arm_nn_tables.h 00004 * Description: Extern declaration for NN tables 00005 * 00006 * $Date: 17. January 2018 00007 * $Revision: V.1.0.0 00008 * 00009 * Target Processor: Cortex-M cores 00010 * -------------------------------------------------------------------- */ 00011 /* 00012 * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. 00013 * 00014 * SPDX-License-Identifier: Apache-2.0 00015 * 00016 * Licensed under the Apache License, Version 2.0 (the License); you may 00017 * not use this file except in compliance with the License. 00018 * You may obtain a copy of the License at 00019 * 00020 * www.apache.org/licenses/LICENSE-2.0 00021 * 00022 * Unless required by applicable law or agreed to in writing, software 00023 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00024 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00025 * See the License for the specific language governing permissions and 00026 * limitations under the License. 00027 */ 00028 00029 #ifndef _ARM_NN_TABLES_H 00030 #define _ARM_NN_TABLES_H 00031 00032 #include "../../DSP/include/arm_math.h" 00033 00034 /** 00035 * @brief tables for various activation functions 00036 * 00037 */ 00038 00039 extern const q15_t sigmoidTable_q15[256]; 00040 extern const q7_t sigmoidTable_q7[256]; 00041 00042 extern const q7_t tanhTable_q7[256]; 00043 extern const q15_t tanhTable_q15[256]; 00044 00045 /** 00046 * @brief 2-way tables for various activation functions 00047 * 00048 * 2-way table, H table for value larger than 1/4 00049 * L table for value smaller than 1/4, H table for remaining 00050 * We have this only for the q15_t version. It does not make 00051 * sense to have it for q7_t type 00052 */ 00053 extern const q15_t sigmoidHTable_q15[192]; 00054 extern const q15_t sigmoidLTable_q15[128]; 00055 00056 extern const q15_t sigmoidLTable_q15[128]; 00057 extern const q15_t sigmoidHTable_q15[192]; 00058 00059 #endif /* ARM_NN_TABLES_H */ 00060
Generated on Tue Jul 12 2022 16:47:27 by 1.7.2