CNN : error in property 'Name' definition

1 次查看(过去 30 天)
sally
sally 2018-2-20
Hi, I'm trying to build a Convolutional NN using the following code in MATLAB 2017a: layers = [
imageInputLayer([64 64 1])
convolution2dLayer(5,16,'Padding',1)
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,32,'Padding',1)
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,64,'Padding',1)
reluLayer
fullyConnectedLayer(2)
softmaxLayer
classificationLayer];
but an error appears:
The definition of property 'Name' in class 'nnet.cnn.layer.MaxPooling2DLayer' differs from its
definition in the superclass 'nnet.cnn.layer.Layer'. This is caused by either conflicting access
permissions or differing values of the Constant attribute.
Error in maxPooling2dLayer (line 58)
inputArguments = nnet.cnn.layer.MaxPooling2DLayer.parseInputArguments(varargin{:});
and if i deleted the inputimagelayer, the error repeats with every layer.. what could be done wrong? I opened the internal built-in function once to check the code, but changed nothing

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by