CNN : error in property 'Name' definition

2 views (last 30 days)
sally
sally on 20 Feb 2018
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!