Stateful predict block failed to evaluate mask initial commands

3 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Lucas García
Lucas García el 10 de Mayo de 2024
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 comentarios
Lucas García
Lucas García el 11 de Mayo de 2024
Editada: Lucas García el 11 de Mayo de 2024

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 el 11 de Mayo de 2024
well thank you so much @Lucas García !
gensim worked for me.
Thanks
regards

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by