From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- docs/NN/html/arm__nn__tables_8h.html | 240 +++++++++++++++++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 docs/NN/html/arm__nn__tables_8h.html (limited to 'docs/NN/html/arm__nn__tables_8h.html') diff --git a/docs/NN/html/arm__nn__tables_8h.html b/docs/NN/html/arm__nn__tables_8h.html new file mode 100644 index 0000000..84dd3f8 --- /dev/null +++ b/docs/NN/html/arm__nn__tables_8h.html @@ -0,0 +1,240 @@ + + + + + +arm_nn_tables.h File Reference +CMSIS-NN: arm_nn_tables.h File Reference + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-NN +  Version 1.1.0 +
+
CMSIS NN Software Library
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
arm_nn_tables.h File Reference
+
+
+ + + + + + + + + + + + + + + + + +

+Variables

const q15_t sigmoidTable_q15 [256]
 tables for various activation functions More...
 
const q7_t sigmoidTable_q7 [256]
 tables for various activation functions More...
 
const q7_t tanhTable_q7 [256]
 
const q15_t tanhTable_q15 [256]
 
const q15_t sigmoidHTable_q15 [192]
 2-way tables for various activation functions More...
 
const q15_t sigmoidLTable_q15 [128]
 
+

Variable Documentation

+ +
+
+ + + + +
const q15_t sigmoidHTable_q15
+
+

2-way table, H table for value larger than 1/4 L table for value smaller than 1/4, H table for remaining We have this only for the q15_t version. It does not make sense to have it for q7_t type

+ +
+
+ +
+
+ + + + +
const q15_t sigmoidLTable_q15
+
+ +
+
+ +
+
+ + + + +
const q15_t sigmoidTable_q15[256]
+
+ +

Referenced by arm_nn_activations_direct_q15().

+ +
+
+ +
+
+ + + + +
const q7_t sigmoidTable_q7[256]
+
+

This file include the declaration of common tables. Most of them are used for activation functions

+

Assumption: Unified table: input is 3.x format, i.e, range of [-8, 8) sigmoid(8) = 0.9996646498695336 tanh(8) = 0.9999997749296758 The accuracy here should be good enough

+

2-stage HL table:

+

The entire input range is divided into two parts:

+

Low range table: 0x000x xxxx or 0x111x xxxx table entry will be the binary number excluding the first two digits, i.e., 0x0x xxxx or 0x1x xxxx

+

High range table 0x0010 0000 – 0x0111 1111 0x1000 0000 – 0x1101 1111

+

For positive numbers, table entry will be 0x0010 0000 – 0x0111 1111 minus 0x0010 0000 i.e., 0x0000 0000 - 0x0101 11111

+

same thing for the negative numbers, table entry will be 0x1000 0000 – 0x1101 1111 minux 0x0010 0000 i.e., 0x0110 0000 - 0x1011 1111

+ +

Referenced by arm_nn_activations_direct_q7().

+ +
+
+ +
+
+ + + + +
const q15_t tanhTable_q15[256]
+
+ +

Referenced by arm_nn_activations_direct_q15().

+ +
+
+ +
+
+ + + + +
const q7_t tanhTable_q7[256]
+
+ +

Referenced by arm_nn_activations_direct_q7().

+ +
+
+
+
+ + + + -- cgit