C Code Generation for 1D CNN networks using CMSIS-NN
Mostra commenti meno recenti
Hello,
since R2022a the CMSIS-NN library is available for C code generation. I am currently trying to generate C code from 1D CNNs for timeseries classification with the Matlab Coder App and run the generated code on a STM32F427. However, the CMSIS Library seems to support only LSTM Networks (tested with the coder.getDeepLearningLayers(TargetLibrary = 'cmsis-nn') command) but neither 1D nor 2D Convolution Layers.
Also i did find this instruction on how to build the CMSIS-NN library. I was able to follow all steps, but i don't really know how to proceed further with the resulting files. Since the title refers to C++ and the instruction itself only refers to C Code i am not sure whether this is the right solution to my problem.
So my questions are:
- Is it currently possible to generate C-Code from 1D CNNs (with or without CMSIS-NN)?
- If not, how should a workaorund with 2D CNN (with 1D sequence input) look like?
- If no solution is available for C, would it help to switch to C++ and embed the generated C++ code into the main C project?
Thank you very much!
Marisa
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!