Error using concatenationLayer Cannot define property 'Name'
조회 수: 1 (최근 30일)
이전 댓글 표시
José Enrique Almanza Medina
2020년 7월 27일
댓글: José Enrique Almanza Medina
2020년 7월 30일
Hello,
I am trying to define a concatenation layer in Matlab 2020a but I get the following error:
Error using concatenationLayer Cannot define property 'Name' in class 'concatenationLayer' because the property has already been defined in the superclass 'Layer'.
I get the same error even using the simple command from the help from matlab
concat = concatenationLayer(4,2,'Name','concat')
This is strange, because I have been using this command since version 2019a but now that I migrated to 2020a I get the error.
I hope anyone can help me to fix this issue.
Best regards,
José
댓글 수: 0
채택된 답변
Harsha Priya Daggubati
2020년 7월 30일
편집: Harsha Priya Daggubati
2020년 7월 30일
Hi,
Did you try using a new layer name other than 'concat', as the error mentions the name has already been used in a superclass.
I tried to work the same at my end, it works completely fine for me.
If the problem still persists, try using the following commands and retry your work.
rehash toolbox
rehash toolboxcache
댓글 수: 7
Harsha Priya Daggubati
2020년 7월 30일
Hi,
Can you just give a try with this command:
which concatenationLayer
This will be the expected output for the above command:
'C:\Program Files\MATLAB\R2020a\toolbox\nnet\cnn\concatenationLayer.m'
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!