フィルターのクリア

How to use a neural network model generated using feedforwardnet in code generation?

13 ビュー (過去 30 日間)
I am getting an error: "Object type "Network" is not supported for code generation". I have tried using coder.loadDeepLearningNetwork but still not working.

採用された回答

Sanjana
Sanjana 2023 年 3 月 30 日
Hi,
I Understand that you are facing an issue with code generation of shallow neural networks.
“Coder.loadDeepLearningNetwork” can be used only with Deep Neural Networks. To achieve code generation for shallow neural networks, follow the below approach:
  • Use “genFunction” to generate a complete stand-alone MATLAB function for simulating a neural network including all settings, weight and bias values, module functions and calculations in one file.
  • You can then generate C/C++ code from this standalone MATLAB function.
Please refer the below link, for further information
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by