Stateful predict block failed to evaluate mask initial commands

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

 Accepted Answer

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 Comments

1) I'm using the latest version i.e. 2024 and I have an academic lisence.
2) this block contains a Recurrent Neural Network that I've trained for some data with 0.0168 rmse and this block is supposed to give out a single value.
3) this is the error.

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.

well thank you so much @Lucas García !
gensim worked for me.
Thanks
regards

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2024a

Asked:

on 10 May 2024

Commented:

on 11 May 2024

Community Treasure Hunt

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

Start Hunting!