How to use LSTM based trained Recurrent Neural Network in Simulink?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have trained recurrent neural network and using "Predict" command it gives the required output for the trained input set but i am facing error on using it in "user defined function" in simulink, importing net.mat file via "from work space" block or "load ('net.mat');" command.
ERROR:
Unsupported input format for From Workspace block 'SHAPFpqFinal/RNN/From Workspace'. Available formats are double non-complex matrix, a structure with or without time, or a structure with MATLAB timeseries as leaf nodes. All formats require the data to be finite (not Inf or NaN).
Component:Simulink | Category:Block error
Kindly do guide me in this regard. Thanks in advance....
댓글 수: 2
Chengshi Wang
2020년 1월 22일
Did you found out the solution? I was wondering the same problem. Thanks.
답변 (1개)
Arkadiy Turevskiy
2021년 10월 18일
Hi,
We added a library of blocks to integrate deep learning networks into Simulink models starting with 20b. Support for LSTM and other recurrent networks was added in 21a.
To bring trained LSTM into a Simulink model, please use Stateful Classify block. In the block dialog specify .MAT file with your LSTM network.
HTH.
Arkadiy
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!