I ran the code trying to transfer Alexnet layer with reference to https://jp.mathworks.com/help/deeplearning/ug/transfer-learning-using-alexnet.html?lang=en
net = alexnet('Weights','none');inputSize = net.Layers(1).InputSize;
However, the following error occurred.
Unrecognized method, property, or field 'Layers' for class 'nnet.cnn.layer.Layer'.Error in test (line 2) inputSize = net.Layers(1).InputSize;
How can I resolve the error?
Best Answer