Skip to content

Commit db74782

Browse files
authored
Release 1.0 RC1
Release 1.0 RC1
2 parents 8e4563e + e742f3c commit db74782

File tree

273 files changed

+80058
-2
lines changed

Some content is hidden

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

273 files changed

+80058
-2
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*.o
2+
*.u
3+
*.s
4+
*.a
5+
*.elf
6+
*.map
7+
*.pyc
8+
example_cifar10_caffe/MIDE_EM/EM*D/*
9+
example_cifar10_caffe/MIDE_EM/.settings/*
10+
example_har_smartphone/MIDE_EM/EM*D/*
11+
example_har_smartphone/MIDE_EM/.settings/*
12+
*.log
13+
*mdb_log.txt
14+
*.stdout
15+
*.stderr
16+
*.db
17+
.project
18+
.vscode
19+
obj/*.d

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# All files need to be reviewed by JaccovG or ipozdnov
2+
* @JaccovG @ipozdnov

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright (c) 2019, Synopsys, Inc. All rights reserved.
1+
embARC Machine Learning Inference (embARC MLI) library
2+
3+
Copyright (c) 2019 Synopsys, Inc. All rights reserved.
24

35
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
46

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# Copyright 2019, Synopsys, Inc.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-3-Clause license found in
6+
# the LICENSE file in the root directory of this source tree.
7+
#
8+
9+
# Default TCF is based on the standard EM9D Voice Audio template
10+
TCF ?= ../../hw/em9d.tcf
11+
12+
.PHONY: lib
13+
14+
all: app
15+
16+
lib:
17+
gmake -C lib/make TCF_FILE=$(TCF)
18+
19+
app: lib
20+
gmake -C lib/make TCF_FILE=$(TCF)
21+
gmake -C examples/example_cifar10_caffe TCF_FILE=$(TCF)
22+
gmake -C examples/example_har_smartphone TCF_FILE=$(TCF)
23+
24+
cleanapp:
25+
gmake -C examples/example_cifar10_caffe clean
26+
gmake -C examples/example_har_smartphone clean
27+
28+
cleanall:
29+
gmake -C lib/make clean
30+
gmake -C examples/example_cifar10_caffe cleanall
31+
gmake -C examples/example_har_smartphone cleanall
32+
33+
libclean:
34+
gmake -C lib/make clean

README.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,80 @@
1-
"# embarc_mli"
1+
EmbARC Machine Learning Inference Library
2+
==================================================
3+
4+
This repository contains source code of embARC Machine Learning Inference Library (embARC MLI Lib),
5+
examples and documentation.
6+
7+
## Release notes
8+
----------------
9+
1. Preliminary version 0.5
10+
2. This release supports following functional primitives
11+
* 2D Convolution
12+
* 2D depthwise convolution
13+
* Fully Connected layer
14+
* Max and average pooling
15+
* LSTM, Basic RNN
16+
* Elementwise (add, sub, mul, min, max)
17+
* Data manipulation (concatanation, permute, 2D padding)
18+
* ReLU, Leaky ReLu, ReLu1, ReLu6
19+
* Softmax, Sigmoid, ThanH
20+
3. Supported data layout CHW (Channel-Height-Width standard for Caffe)
21+
22+
## Package structure
23+
--------------------
24+
./bin - directory holder for embARC MLI library and samples binaries created during build
25+
./build - contains common build rules
26+
./doc - contains the API documentation of the embARC MLI library
27+
./include - include files with API prototypes and types
28+
./lib/src - source code of embARC MLI Library
29+
./examples - source code of examples
30+
./examples/example_cifar10_caffe - example illustrating implementation of CIFAR10 Caffe
31+
./examples/example_har_smartphone - example illustrating implementation of Human Activity Recognition
32+
./examples/auxilary - source code of helper functions used for the examples
33+
./hw - contains HW templates (*.tcf files)
34+
35+
## Building and quick start
36+
---------------------------
37+
By default embARC MLI Library can be build for [/hw/em9d.tcf](/hw/em9d.tcf) which is based on the standard EM9D Voice Audio template,
38+
defined in [MetaWare Development Tools](https://www.synopsys.com/dw/ipdir.php?ds=sw_metaware), with extended XY memory. embARC MLI Library can be also built for a specific
39+
EM or HS configuration.
40+
41+
Build requirements:
42+
1. MetaWare Development tools 2018.12 or later
43+
44+
Building of embARC MLI library
45+
1. Open command line and change working directory to './lib/make/'
46+
2. Start building
47+
'gmake TCF_FILE=../../hw/em9d.tcf'
48+
49+
## Building and running [CIFAR10 Caffe example](examples/example_cifar10_caffe/README.md)
50+
---------------------------------------------
51+
1. Open command line and change working directory to './examples/example_cifar10_caffe/'
52+
53+
2. Build CIFAR10 example
54+
'gmake TCF_FILE=../../hw/em9d.tcf'
55+
56+
3. Run CIFAR10 example
57+
'gmake run TCF_FILE=../../hw/em9d.tcf'
58+
59+
4. Result Quality shall be "S/N=3638.6 (71.2 db)"
60+
61+
## Building and running [Human Activity Recognition example](examples/example_har_smartphone/README.md)
62+
----------------------------------------------------------
63+
1. Open command line and change working directory to './examples/example_har_smartphone'
64+
65+
2. Clean old build artifacts of the application (this will not clean the lib)
66+
'gmake clean'
67+
68+
3. Build HAR example.
69+
'gmake TCF_FILE=../../hw/em9d.tcf'
70+
71+
4. Run HAR example.
72+
'gmake run TCF_FILE=../../hw/em9d.tcf'
73+
74+
5. Result Quality shall be "S/N=1823.9 (65.2 db)"
75+
76+
77+
## Known Issues
78+
---------------
79+
None
80+

0 commit comments

Comments
 (0)