image.scale(Tensor src,Tensor dst,string type) scales the Tensor src to fit the provided destination Tensor dst.

The type of scaling can be either 'bilinear' or 'simple'. Bilinear gives better images, simple is a simple nearest-neighbor approach.

src and dst cannot be the same.