Can somebody please guide me how to remove following error

2 次查看(过去 30 天)
Error in sequenceInputLayer (line 26)
inputArguments = iParseInputArguments(varargin{:});
Error in lstm_2 (line 62)
sequenceInputLayer(inputsize,'Name','ip')
  5 个评论
ALI
ALI 2022-10-21
编辑:Walter Roberson 2022-10-27
this is the code where it shows error
%define LSTM
inputsize=[1,rt,ct];
NOF=6;
NOR=1;
NHU=200;
layers =[
sequenceInputLayer(inputsize,'Name','ip')
% sequenceinputlayer(NOF)
% flattenlayer([rt 3 2],rt*3*2)
flattenlayer('Name','F1')
lstmLayer(NHU,'OutputMode','sequence','Name','LSTM') %last for cell data
fullyConnectedLayer(NOR, 'Name','fC')
regressionLayer('Name','RL')];
lgraph=layerGraph(layers);
% lgraph=connectLayers(lgraph,'relu_1','add/in2');
plot(lgraph);
ALI
ALI 2022-10-21
this is the error ]
% Parse the input arguments.
inputArguments = iParseInputArguments(varargin{:});
% Create an internal representation of a sequence input layer.
internalLayer = nnet.internal.cnn.layer.SequenceInput( ...
inputArguments.Name, ...
inputArguments.InputSize );

请先登录,再进行评论。

采纳的回答

Harsha
Harsha 2022-10-27
MATLAB R2018a and R2018b only support InputSize argument in sequenceInputLayer as scalar.
InputSize as vector is supported from MATLAB R2019a release.
Refer to this documentation links regarding the same

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by