Connect fully connected layer to a convolution layer?

5 visualizaciones (últimos 30 días)
Kittel Le
Kittel Le el 11 de Mzo. de 2019
Respondida: Uttiya Ghosh el 18 de Jun. de 2020
When building a CNN network for image reconstruction with fully connected layer followed by convolution layers, I found that the output of fully connected layer is always a vector. If I want fully connected layer to be followed by a 2D convolution layer, is there any intermediate layer to reshape the data transferred in between two layers, either on output of fully connected layer or input of convolution layers?
Thanks.

Respuestas (1)

Uttiya Ghosh
Uttiya Ghosh el 18 de Jun. de 2020
Hi Kittel,
From my understanding, you want to introduce a reshape layer between your fully connected layer and 2D convolution layer. There is no reshape layer in MATLAB. As a workaround you can always create a custom layer.
For more information, refer to the following links.

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by