필터 지우기
필터 지우기

DeepLearning network compiling for embedded code error

조회 수: 8 (최근 30일)
Yang Liu
Yang Liu 2023년 12월 8일
댓글: Yang Liu 2023년 12월 28일
I have trained a DL network and save as a .mat file (attached as "Paper3_LSTM_Based_Network2.mat"). The DL network simulates correctly under the Simulink environment (attached as "temp3.slx").
But when I tried to generate the C++ code through Embedded Code, it revealed:
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
  • Cannot set ActualArgs property. Number of elements specified does not match number of elements in the Prototype's Arguments property.
Can someone help me understand this error information? Any solution I can apply with?
Note: The DL network contains the SeqFolding and SeqUnfolding, thus I have to rely on the ARM Compute Library.
  댓글 수: 1
Ganesh
Ganesh 2023년 12월 18일
편집: Ganesh 2023년 12월 18일
May I know which version of MATLAB you are using?
Code generation seems to work fine on MATLAB R2023b.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ganesh
Ganesh 2023년 12월 22일
I understand that you are facing an issue with Code Generation using "Embedded Coder" when you are using a trained DL Network. The error you are facing is a known issue with r2021a. Kindly refer to the following link for more information on the bug:
I would suggest you to upgrade to a later version of MATLAB, which can be found in the following link:
Hope this helps!
  댓글 수: 1
Yang Liu
Yang Liu 2023년 12월 28일
Hi, Ganesh,
Thanks a lot for you kind reply! I'm using Matlab 2022b.
I just solved this problem yesterday, by entering "which codeInfo.mat -all" in the command window, and wiping out the paths revealed below. Now, my model can be generated with source code.
Thank you very much!
Yang Liu

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning with GPU Coder에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by