Error using concatenationLayer Cannot define property 'Name'

2 visualizaciones (últimos 30 días)
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é

Respuesta aceptada

Harsha Priya Daggubati
Harsha Priya Daggubati el 30 de Jul. de 2020
Editada: Harsha Priya Daggubati el 30 de Jul. de 2020
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 comentarios
Harsha Priya Daggubati
Harsha Priya Daggubati el 30 de Jul. de 2020
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'
José Enrique Almanza Medina
José Enrique Almanza Medina el 30 de Jul. de 2020
Hi,
That command showed me that I had a function made by me with the exact same name in my MATLAB folders. I think this is an old attempt to create my own version of the layer. This is quite silly from my side, it got mixed between a lot of scripts.
I removed it and that fixed the issue. Thanks a lot for your assitance.
Best regards,
José Almanza

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by