Skip to main content

Model

Trait Model 

Source
pub trait Model<'a> {
    type Input;
    type Output;

    // Required method
    fn forward(&self, input: Self::Input) -> Result<Self::Output>;
}
Expand description

A compiled, runnable model.

Required Associated Types§

Source

type Input

This model’s input type.

Source

type Output

This model’s output type.

Required Methods§

Source

fn forward(&self, input: Self::Input) -> Result<Self::Output>

Runs inference, producing Output from input.

Implementors§