Flatten layer in MATLAB

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?

Risposte (1)

Jon Cherrie
Jon Cherrie il 23 Apr 2021

1 voto

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.

Categorie

Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange

Prodotti

Release

R2021a

Richiesto:

il 23 Apr 2021

Risposto:

il 23 Apr 2021

Community Treasure Hunt

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

Start Hunting!

Translated by