LSTM input signal error.
Show older comments
I am getting the following error when connecting PI contoller output to one of LSTM network input.
Layer "sequenceinput": Invalid input data. Invalid size of channel dimension. Layer expects input with channel dimension size 6 but received input with size 1.
Function 'Condenser/MLFB' (#860.166.482), line 5, column 19:
"deep.blocks.internal.sequenceNetworkPredict({in_1}, {size(in_1)}, {class(in_1)},"
Launch diagnostic report.
Component:MATLAB Function | Category:Coder error
Errors occurred during parsing of 'compressor_out_pressure/Condenser/MLFB'.
Component:MATLAB Function | Category:Coder error
Simulink unable to determine sizes and/or types of the outputs for block 'compressor_out_pressure/Condenser/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 'compressor_out_pressure/Condenser/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 'compressor_out_pressure/Condenser/MLFB/in_1' has 6 elements. This port does not accept the dimensions (or orientation) specified by the output signal.
Component:Simulink | Category:Model error
1 Comment
Chuguang Pan
about 6 hours ago
@Jaffer. The error message suggests that your LSTM network input layer sequenceInputLayer need input dlarray has 6 channels while the PI controller output has only 1 channel. You should confirm that the PI controller output is a vector with 6 dim.
Answers (0)
Categories
Find more on Function Approximation and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!