[][src]Function tch::vision::imagenet::load_image_and_resize224

pub fn load_image_and_resize224<T: AsRef<Path>>(path: T) -> Fallible<Tensor>

Loads an image from a file and resize it to 224x224. This applies the ImageNet normalization.