Function tch::vision::image::load

source ·
pub fn load<T: AsRef<Path>>(path: T) -> Result<Tensor, TchError>
Expand description

Loads an image from a file.

On success returns a tensor of shape [channel, height, width].