Error using sequenceInputLayer, Invalid argument at position 1. Expected input to be a scalar, 3 element vector or 4 element vector. Should i fill something in inputsize??

Please help me, i really have no idea. Im error using sequenceInputLayer.
here's the sequenceInputLayer code :
arguments
inputSize {mustBeNumeric, mustBeNonempty, mustBeValidScalarOrRowVector(inputSize), ...
mustBeReal, mustBeFinite, mustBeInteger, mustBePositive}
nameValueArgs.Normalization {iValidNormalization} = 'none';
nameValueArgs.NormalizationDimension = 'auto';
nameValueArgs.Name {iAssertValidLayerName} = '';
nameValueArgs.Mean = [];
nameValueArgs.StandardDeviation = [];
nameValueArgs.Min = [];
nameValueArgs.Max = [];
nameValueArgs.AverageImage = [];
end

댓글 수: 3

and this is the layer's code
layers = [ ...
sequenceInputLayer([n_samples,numFeatures])
convolution1dLayer(filterSize,numFilters,'Padding','same')
eluLayer
maxPooling1dLayer(3, 'Stride', 2)
flattenLayer
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];

댓글을 달려면 로그인하십시오.

 채택된 답변

Your release does not support 1D sequence input. The first release that supported that was R2021b

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2023년 2월 13일

답변:

2023년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by