input layer and flatten mismatch
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
new_user
am 12 Dez. 2021
Beantwortet: Abolfazl Chaman Motlagh
am 12 Dez. 2021
how to correct this error for the input and flatten layer.
0 Kommentare
Akzeptierte Antwort
Abolfazl Chaman Motlagh
am 12 Dez. 2021
The Flatten layer support sequence input only. [1]
As i understand from your network architechture you don't need Flatten Layer. in Matlab Flattenlayer is for merging height,width and channel of input in an aray for N data in minibatch and S (number of sequences) series data. the output is a 3-dimensianal array with size of (H*W*C)xNxS.
if you use a fullyconnectedlayer(fc) as you did after Flatten layer, the input array of fc layer which is comming from a Conv layer become vectorize in a spatial domain in output of layer.
so just deleting the Flatten layer will solve the problem.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!