Feature Input layer error MATLAB 2021a
8 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Chunru
2021-10-23
编辑:Chunru
2021-10-23
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 个评论
Chunru
2021-10-23
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!