pub fn resize(t: &Tensor, out_w: i64, out_h: i64) -> Result<Tensor, TchError>
Expand description

Resizes an image.

This expects as input a tensor of shape [channel, height, width] and returns a tensor of shape [channel, out_h, out_w].