pub fn resize_preserve_aspect_ratio(
t: &Tensor,
out_w: i64,
out_h: i64
) -> Result<Tensor, TchError>
Expand description
Resize an image, preserve the aspect ratio by taking a center crop.
This expects as input a tensor of shape [channel, height, width] and returns