is not directly possible, but certainly possible to simulate it with the torch.unfold function. The way to do it is the same way one does convolution via matrix multiplication (unfold all the image patches): https://en.wikipedia.org/wiki/Toeplitz_matrix#Discrete_convolution 10


Yes, you can absolutely do this out of the box.


You can unfold + view / view + transpose to achieve this.