How do I turn a trained Neural Net into a C++ function?

I am currently working on speeding up the evaluations of a trained neural net. I was hoping to put the trained neural net into C++ and run the evaluations to check for an increase in speed. Does anyone know how to do this?

回答 (1 件)

Sudhanshu Bhatt
Sudhanshu Bhatt 2015 年 10 月 30 日

0 投票

Hi UndergradStudent546513,
The Neural Network toolbox functions are not supported for code generation for C/C++.
As a workaround, the Neural Network toolbox does provide functionality GENFUNCTION to produce a MATLAB function that would allow for code generation.
Hope this helps.
Thanks
Sudhanshu Bhatt

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2015 年 10 月 28 日

回答済み:

2015 年 10 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by