Question for 'Layer Input sizes' in custom neural network layers
Afficher commentaires plus anciens
According to the 'checkLayer' document, there is a description about 'validInputSize' and I am confused about the below description.
"For layers with a single input, specify validInputSize as a vector of integers corresponding to the dimensions of the input data."
what does 'single input' means? Does it means a really signle scalor? like x1? or vector like
where
?
According to the 'checkLayer' document, 5 types of layer input are introduced for intermediate layer.
what I want is to make a intermediate layer having 2 input nodes. So, my input is
.
In this case, I guess I need to use 'Vector sequences' and input size should be 2 by N by 1, where N is the number of observations.
(two features
and each feature is just scalar)
(By the way, does 'observation' means batch size? I'm confused about therminology in Matlab)
Let's say N = 50. Then, input size is 2 by 50 by 1. So, when I validate my layer I need to set
validInputsize = [2 50 1];
If I write code like this, is this a 'single input'?
If it is a 'single input', what is 'multiple inputs'?
'multiple inputs' are used when my custom layer accept two different type of input?

The above figure showing 'two inputs' (if I am correct), one input is 2 by 1 vector like my case I explained in the above, the other input is 2 by 2 amplitude image (black & white). Am I correct?
Lastly, 'fullyConnectedLayer' has 'InputSize' and 'OutputSize' properties. Are they having different definition to input size in a custom layer? What value I choose in 'fullyConnectedLayer' it seems to me just 'one input' and 'one input' according to the definition in a custom layer.
Réponse acceptée
Plus de réponses (1)
debojit sharma
le 23 Juin 2022
0 votes
For preparing the type of table shown in the attached figure, how can i get the values for the last column of the table i.e Input Size for each layer in my CNN model?
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!