Image by Author

Pytorch Conv2d Weights Explained

Understanding weights dimension, visualization, number of parameters and the infamous size mismatch

Javier
5 min readNov 26, 2021

--

One of the most common problems I have found in my journey with Pytorch is the size mismatch error when uploading weights to my models. As you know, Pytorch does not save the computational graph of your model when you save the model weights…

--

--

AI Research Engineer in Deep Learning. Living between the math and the code. A philosophic seeker interested in the meaning of everything from quarks to AI.