Use the PyTorch Model Predict function block in the matlab2024b simulink module to import a neural network trained using pytorch.

6 ビュー (過去 30 日間)
丁
2025 年 9 月 3 日
回答済み: 2025 年 9 月 3 日
Hello, I need to use the PyTorch Model Predict block in MATLAB R2024a and Simulink to integrate a neural network trained with PyTorch for power system voltage prediction. Import the neural network policy_net_matlab.pth file in the simulink module following the official tutorial, using the function torch.load(). The input and output dimensions are set to match the network parameters. No pre-processing and post-processing functions are loaded. Because they are not used. Clicking Run reports the following error as shown in the image:

回答 (2 件)

丁
2025 年 9 月 3 日
this is PMU

丁
2025 年 9 月 3 日

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by