Skip to content

Where is flatten? #2988

Answered by arrufat
UlrichVonRekkenin asked this question in Q&A
Aug 1, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you're talking about that functionality in the dnn part, there isn't because it's not needed. Usually, you use flatten in TF to input the tensor into a Fully Connected (or Dense, as TF calls it) layer. In dlib you can input the tensor without flattening, and it will still work. See any dnn_ example.

Flattening is a human construct, the data remains the same, we just need to connect all neurons in FC layers, no matter where they are in space.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@UlrichVonRekkenin
Comment options

Answer selected by UlrichVonRekkenin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants