I have problem using the simulink block obtained from LSTM trained network. The following is the error. number of inputs to be used is 2 and number of ouputs is 1

48 ビュー (過去 30 日間)
Sowmya
Sowmya 2024 年 12 月 17 日 8:35
コメント済み: Malay Agarwal 2024 年 12 月 30 日 13:12
Error:Layer "sequenceinput": Invalid input data. Invalid size of channel dimension. Layer expects input with channel dimension size 2 but received input with size 1.
Function 'Subsystem/Stateful Predict/MLFB' (#218.166.365), line 5, column 19:
"deep.blocks.internal.sequenceNetworkPredict({in_1}, {size(in_1)}, {class(in_1)},"
Errors occurred during parsing of 'neural_network_deep/Subsystem/Stateful Predict/MLFB'.
Component:MATLAB Function | Category:Coder error
Simulink unable to determine sizes and/or types of the outputs for block 'neural_network_deep/Subsystem/Stateful Predict/MLFB' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
Component:MATLAB Function | Category:Coder error
Simulink unable to determine sizes and/or types of the outputs for block 'neural_network_deep/Subsystem/Stateful Predict/MLFB' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
Component:Simulink | Category:Model error
Error in port widths or dimensions. 'Output Port 1' of 'neural_network_deep/Subsystem/Stateful Predict/MLFB/in_1' is a one dimensional
  4 件のコメント
Sowmya
Sowmya 2024 年 12 月 26 日 7:53
The network obtained is used in the above model.
This produces errorError:Layer "sequenceinput": Invalid input data. Invalid size of channel dimension. Layer expects input with channel dimension size 2 but received input with size 1.
Function 'Subsystem/Stateful Predict/MLFB' (#205.166.369), line 5, column 19:
"deep.blocks.internal.sequenceNetworkPredict({in_1}, {size(in_1)}, {class(in_1)},"
Launch diagnostic report.
Malay Agarwal
Malay Agarwal 2024 年 12 月 30 日 13:12
Please share the Simulink model as an attachment along with the training data (Excel files).

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by