Function tch::vision::imagenet::save_image
source · pub fn save_image<T: AsRef<Path>>(
tensor: &Tensor,
path: T
) -> Result<(), TchError>
Expand description
Saves an image to a path. This unapplies the ImageNet normalization.