I discuss how to implement convolution-like operations from scratch using folding and unfolding operations. This is how convolutions are implemented internally as well.
https://pytorch.org/docs/stable/gener...
https://pytorch.org/docs/stable/gener...