Feature Input layer error MATLAB 2021a
Mostra commenti meno recenti
I am running the below code on MATLAB 2021a in Ubuntu 20.04.
numFeatures = 21;
numClasses = 3;
layers = [
featureInputLayer(numFeatures,'Name','input')
fullyConnectedLayer(numClasses, 'Name','fc')
softmaxLayer('Name','sm')
classificationLayer('Name','classification')]
I am not sure why I am getting the below error
Unable to resolve the name nnet.internal.cnn.layer.FeatureInput.
Error in featureInputLayer (line 99)
internalLayer = nnet.internal.cnn.layer.FeatureInput(...
It was working fine in MATLAB2020b. Any help is greatly appreciated.
Risposte (1)
featureInputLayer is Introduced in R2020b.
Try:
which featureInputLayer
numFeatures = 21;
numClasses = 3;
layers = [
featureInputLayer(numFeatures,'Name','input')
fullyConnectedLayer(numClasses, 'Name','fc')
softmaxLayer('Name','sm')
classificationLayer('Name','classification')]
4 Commenti
Dushyant Sahoo
il 23 Ott 2021
Chunru
il 23 Ott 2021
Open up the "/MATLAB/toolbox/nnet/cnn/featureInputLayer.m" and set a break pointer. Then run the command again.
Dushyant Sahoo
il 23 Ott 2021
Modificato: Dushyant Sahoo
il 23 Ott 2021
Chunru
il 23 Ott 2021
Running inside the .m file allows you to step through the program and locate where things go wrong. Without your machine, that is the most we can suggest. Next thing you can try is to reinstall matlab.
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!