Inverse of tensor `torch.unfold` function

Could you try torch.nn.functional.fold?