Neural Networks Functions Convert to C++ codes
조회 수: 6 (최근 30일)
이전 댓글 표시
*Hi All,
I am using the Neural Networks Toolbox to design and test the Neural Networks implementations. However, the Matlab codes does not suffice the speed and memory requirement of a very large networks (with 100,000+ neurons). I am exploring ways to convert the Matlab Neural Networks implementations to C++ implementations. Can the Codes Generation Toolbox help me to do that? Has anyone tried to convert the Matlab Neural Network codes to C++ before?
I converted the Feedforward Network and the trainlm() for Back Propagation algorithm to Visual C++ implementations 9 years ago by hand. That took me 2 full days of work. And the C++ codes was about 10 to 30 times faster and used 1/5 of the memory than the Matlab implementations.
However, with much more complexed networks like the NARX with Conjugate Gradient training algorithms, I think the codes would be much much more complicated than the LM and Feedforward networks that I converted years back. So, I think it would only be practical to utilize the Coder Generation Toolbox to achieve the Matlab to C++ codes convertion.
Appreciate in advance for your inputs in this topic. Meanwhile, I am happy to share with you any progress that I might make along the way.
Thanks,
Baker Huang*
댓글 수: 0
채택된 답변
Friedrich
2012년 3월 21일
Hi,
the MATLAB Coder won't help you here since the Neual Network Toolbox is not supported for code generation:
Or if you have some specific function in mind:
So seems like you have to start writing from the scratch again.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!