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§