Incorporate trained LSTM network in simulink

I have to validate my trained network on the system. For this I need to make a simulink model. I have to get the trained network in simulink. gensim does not work since it can only be used for NARX trained network, but I have my network trained using LSTM. Please help.

1 Comment

As an implementation method, you load the weight information of each unit, generate a calculation formula as an m script using it, and introduce the generated m script as a Matlab Function block.
The below link might be helpful:
.

Sign in to comment.

Answers (1)

Hi,
Starting with 21a you can use Stateful Predict and Stateful Clasiffy blocks.
Take a look at this example too.
Hope this helps.
Arkadiy

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 1 May 2019

Answered:

on 18 Oct 2021

Community Treasure Hunt

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

Start Hunting!