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

pub fn load_image_and_resize224<T: AsRef<Path>>(
    path: T
) -> Result<Tensor, TchError>

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