Feature Input layer error MATLAB 2021a
조회 수: 3 (최근 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!