[][src]Function tch::vision::image::save

pub fn save<T: AsRef<Path>>(t: &Tensor, path: T) -> Fallible<()>

Saves an image to a file.

This expects as input a tensor of shape [channel, height, width]. The image format is based on the filename suffix, supported suffixes are jpg, png, tga, and bmp.