Flatten layer in MATLAB

8 visualizaciones (últimos 30 días)
Pawel Antoniuk
Pawel Antoniuk el 23 de Abr. de 2021
Respondida: Jon Cherrie el 23 de Abr. de 2021
Hello,
Many CNN networks presented in scientific papers have something called a flatten layer. It seems to me that the MATLAB equivalent of this layer is a flattenLayer, but it does not work with images. Is there any way to easily implement a network that works with images with a flatten layer in MATLAB?

Respuestas (1)

Jon Cherrie
Jon Cherrie el 23 de Abr. de 2021
In MATLAB, in many cases, you don't need a flattern layer. Flattern layers are often used before a fully connected layer. The fully connected layer in MATLAB will "auto flatten" in some sense and thus the flattern layer is not needed.

Categorías

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

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by