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

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

Saves an image to a path. This unapplies the ImageNet normalization.