Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d0060e

Browse files
committedMar 29, 2020
preparing deepC for arduino
1 parent f3ba133 commit 8d0060e

File tree

464 files changed

+130331
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+130331
-0
lines changed
 

‎deepC/library.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=Arduino_deepC
2+
version=0.121
3+
author=Rohit Sharma et. al.
4+
maintainer=Rohit Sharma <my-first-name@ai-techsystems.com>
5+
sentence=Allows you to run machine learning models locally on arduino boards.
6+
paragraph=This library runs deepC machine learning models on microcontrollers, allowing you to build AI/ML applications powered by deep learning and neural networks. With the included examples, you can recognize speech, detect people using a camera, and recognise asl gestures using an accelerometer. The examples work best with the Arduino Nano 33 BLE Sense board, which has a microphone and accelerometer.
7+
category=Data Processing
8+
url=https://github.com/ai-techsystems/dnnCompiler
9+
ldflags=-lm
10+
includes=deepC.h

‎deepC/src/Eigen.h

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
Eigen.h
3+
Brian R Taylor
4+
brian.taylor@bolderflight.com
5+
2017-02-08
6+
7+
Copyright (c) 2017 Bolder Flight Systems
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
10+
and associated documentation files (the "Software"), to deal in the Software without restriction,
11+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
12+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all copies or
16+
substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
19+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
*/
24+
25+
// Credits: @rpavlik for writing the original header for the Eigen313 library, which this
26+
// was derived from:
27+
// http://forum.arduino.cc/index.php?PHPSESSID=a86gv50nb3e3ireijfmli63260&topic=144446.msg1089371#msg1089371
28+
29+
// Disable debug asserts.
30+
#define EIGEN_NO_DEBUG 1
31+
32+
// Hint to number of registers
33+
#define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS 16
34+
35+
#ifdef A0
36+
# define NEED_A0_RESTORED A0
37+
# undef A0
38+
#endif
39+
#ifdef A1
40+
# define NEED_A1_RESTORED A1
41+
# undef A1
42+
#endif
43+
#ifdef B0
44+
# define NEED_B0_RESTORED B0
45+
# undef B0
46+
#endif
47+
#ifdef B1
48+
# define NEED_B1_RESTORED B1
49+
# undef B1
50+
#endif
51+
#ifdef round
52+
# define NEED_round_RESTORED round
53+
# undef round
54+
#endif
55+
56+
namespace std {
57+
struct nothrow_t;
58+
}
59+
60+
// Include main EIGEN Core header
61+
#include <Eigen/Core>
62+
63+
#ifdef NEED_A0_RESTORED
64+
# define A0 NEED_A0_RESTORED
65+
# undef NEED_A0_RESTORED
66+
#endif
67+
#ifdef NEED_A1_RESTORED
68+
# define A1 NEED_A1_RESTORED
69+
# undef NEED_A1_RESTORED
70+
#endif
71+
#ifdef NEED_B0_RESTORED
72+
# define B0 NEED_B0_RESTORED
73+
# undef NEED_B0_RESTORED
74+
#endif
75+
#ifdef NEED_B1_RESTORED
76+
# define B1 NEED_B1_RESTORED
77+
# undef NEED_B1_RESTORED
78+
#endif
79+
#ifdef NEED_round_RESTORED
80+
# define round NEED_round_RESTORED
81+
# undef NEED_round_RESTORED
82+
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.