-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/cmsis-nn: add support to RIOT #13062
Conversation
c7a3e89
to
555648a
Compare
555648a
to
235264e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example code might as well be black magic, but I see it was already as opaque in the original example.
I'm impressed by how fast it is even without any hardware acceleration.
# Required for some basic math functions | ||
INCLUDES += -I$(PKGDIRBASE)/cmsis-nn/CMSIS/DSP/Include | ||
|
||
CFLAGS += -Wno-sign-compare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already in Makefile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this one and removed the other: the warning occurs in a header file and is not silenced from the package Makefile
. So I have to silent it globally unfortunately.
235264e
to
59aa103
Compare
Looks good to me - please squash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package works fine with example faithfully converted from upstream C++ example.
59aa103
to
db7d8a5
Compare
Squashed! |
Thanks for reviewing and merging @benpicco ! |
Contribution description
This PR adds support for the neural network API provided by ARM in the CMSIS repository.
A test application is provided for performing the detection of an object in an RGB image from the CIFAR10 dataset. This sample application is adapted from the provided example in the upstream repo.
The image is embedded in the generated firmware using the BLOB mechanism.
Note that the package could have been done based on the existing cmsis-dsp but I wanted to use the latest release 5.6 and the existing cmsis-dsp is using 5.4 and doesn't seem to be that easy to update.
I already have a branch that does that but it's not working on all supported CortextM (like M0).
cc @emmanuelsearch, as we already talked about that before.
Testing procedure
The following command should succeed:
Issues/PRs references
None