I have got a tensor2d (400x400) of values 0-255 and I want to resize this like we resize images to the resolution 20x20
400x400 --> 20x20
There are function