Porting Autogenerated C code from Deep learning toolbox to embedded environment
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nitin Skandan
le 3 Fév 2025
Commenté : Nitin Skandan
le 13 Mar 2025
In ANN Auto C code all matrices are appearing as Static const variables which means that they will be RAM. These variables need to be in FLASH and always read from FLASH due to limitations in RAM size. How is it possible to customise the autocode from Matlab scripts to achieve this ?
Are there are any code generation configuration which allows us to achieve this ?
Please note that I am using MATLAB coder and M-scripts (not SIMULINK)
1 commentaire
Walter Roberson
le 3 Fév 2025
Huh, I would have thought that static const variables would be the most likely to be kept in FLASH.
Réponse acceptée
Ram Kokku
le 6 Fév 2025
Déplacé(e) : Walter Roberson
le 6 Fév 2025
@Nitin Skandan, mapping constants to hardware depends on the backend C/C++ compiler. MATLAB Coder allows customization of deep learning constant generation using the config option LargeConstantGeneration ( https://www.mathworks.com/help/coder/ref/coder.codeconfig.html ). If this does not meet your requirements, please provide an example code snippet that describes your requirements.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!