Stateful predict block failed to evaluate mask initial commands

조회 수: 5 (최근 30일)
MUSKAN
MUSKAN 2024년 5월 10일
댓글: MUSKAN 2024년 5월 11일
this is the error showing up as soon as I run my model.
The recurrent neural network that I've used in this stateful predict block works completely fine on its own but when I use its MAT file in this block.. it ain't working.
what should I do

채택된 답변

Lucas García
Lucas García 2024년 5월 10일
A few questions:
  • What version of MATLAB are you using?
  • Can you provide more details on the network architecture?
  • What's the ouput of running analyzeNetworkForCodegen?
Thanks,
Lucas
  댓글 수: 3
Lucas García
Lucas García 2024년 5월 11일
편집: Lucas García 2024년 5월 11일

I see the issue now. The Stateful Predict block can only work with the modern framework in Deep Learning Toolbox (not the network object). One option might be to retrain the model by building it using layers in the Deep Network Designer app and using the trainnet function. If you wish to continue using the model you have trained as is, you may want to explore if using the gensim function succeeds at generating Simulink blocks for your network.

MUSKAN
MUSKAN 2024년 5월 11일
well thank you so much @Lucas García !
gensim worked for me.
Thanks
regards

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by