C Code Generation for 1D CNN networks using CMSIS-NN
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!