mistralrs_vision

Trait ImageTransform

Source
pub trait ImageTransform {
    type Input;
    type Output;

    // Required method
    fn map(&self, x: &Self::Input, device: &Device) -> Result<Self::Output>;
}
Expand description

A transform over an image. The input may vary but the output is always a Tensor.

Required Associated Types§

Required Methods§

Source

fn map(&self, x: &Self::Input, device: &Device) -> Result<Self::Output>

Implementations on Foreign Types§

Source§

impl<T: ImageTransform<Input = E, Output = E>, E: Clone> ImageTransform for Option<T>

Source§

type Input = <T as ImageTransform>::Input

Source§

type Output = <T as ImageTransform>::Output

Source§

fn map(&self, x: &T::Input, dev: &Device) -> Result<T::Output>

Implementors§