In: x = torch.rand(32, 3, 16, 16)
In: torch.equal(F.fold(F.unfold(x, 3), x.shape, 3), x)
Shouldn’t this return
True? If not, How do I inverse this operation?
I tried to run this on MNIST images, and visually I also see a difference at the edges of the digits.