Replies: 2 comments
-
Also, daniel talks that from pytorch 1.11+ it is not required to do the unsqueeze. However, I have found that when I remove the extra dimension (by not running unsqueeze), the image gets flattened to 10x49. Then I have to multiply 10x49 and 10x10 - this does not seem possible because multiplying the input_features by 4.9 errors out... |
Beta Was this translation helpful? Give feedback.
-
@dehlong The
Where,
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Around 18:25 Daniel multiplies hidden_features77. But why? Shouldn't nn.Flatten() take care of that? Otherwise I get
RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x490 and 10x10)
. But why? I have never set my image to be 10x10? Where does that 10x10 even come from? Where does that 1x490 come from? Why are we even doing that? Can anyone, please, explain me what is happening behind the scenes of this step? To me it does nor make a lot of sense. I am asking about moving from 2nd conv layer to classifier step.Here is the code
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions