Replies: 1 comment
-
The In a sequential model, the output from the Flatten layer is indeed passed as input to the first Linear layer. However, the Flatten layer does not change the number of input features, but rather the shape of the input tensor. The Flatten layer takes a tensor of shape Therefore, the I hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the developed model, the in_features of the first Linear layer is considered as input_shape. I am not able to understand why. The input will be first passed to the Flatten layer, which will eventually change its shape. As it is a sequential model, the output from Flatten layer should be input for the first Linear layer. So why are we considering the input_features of the first Linear layer as input_shape?
Beta Was this translation helpful? Give feedback.
All reactions