I have confusion between the two. Could someone please elaborate on it with some examples?
Asked
Active
Viewed 3,486 times
1
-
https://stackoverflow.com/questions/43237124/role-of-flatten-in-keras – yaho cho May 23 '19 at 16:37
1 Answers
5
Flatten as the name implies, converts your multidimensional matrices (Batch.Size x Img.W x Img.H x Kernel.Size) to a nice single 2-dimensional matrix: (Batch.Size x (Img.W x Img.H x Kernel.Size)). During backpropagation it also converts back your delta of size (Batch.Size x (Img.W x Img.H x Kernel.Size)) to the original (Batch.Size x Img.W x Img.H x Kernel.Size).
Dense layer is of course the standard fully connected layer.

Display name
- 637
- 1
- 7
- 16