Using gensim for dlnetwork

7 ビュー (過去 30 日間)
nikhil singh
nikhil singh 2021 年 7 月 1 日
回答済み: AJ Ibraheem 2024 年 12 月 16 日
How can I use a gensim functionality for a dlnetwork. I need a simulink block corresposding to the dlnetwork object?

回答 (2 件)

Ayush Anand
Ayush Anand 2024 年 5 月 24 日
The gensim function in MATLAB is typically used to generate a Simulink model from a Simulink Control Design linear model (say, models created with the Linear Analysis Tool). However, for integrating a deep learning model dlnetwork into Simulink, gensim isn't directly applicable because dlnetwork objects are not linear models and don't directly convert into Simulink models through gensim.
To integrate a dlnetwork object block into Simulink, the approach would be to define the dlnetwork object in a MATLAB function block that takes inputs compatible with your dlnetwork, performs a forward pass (using predict or forward), and returns the output. You can also refer to this answer on how to use dlnetwork from MATLAB in Simulink: https://www.mathworks.com/matlabcentral/answers/1611315-how-can-i-use-a-dlnetwork-type-neural-network-from-matlab-in-simulink

AJ Ibraheem
AJ Ibraheem 2024 年 12 月 16 日
gensim is not supported for use with dlnetworks.
Try using a predict or stateful predict block in Simulink or try importing your network into Deep Network Designer and exporting to Simulink from there

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by