pub trait Runtime<'a> {
type Model: Model<'a>;
type Input;
type Output;
// Required method
fn forward<D: Dtype, const RANK: usize>(
&self,
model: &Self::Model,
input: &Self::Input,
) -> Result<Self::Output>;
}Expand description
Executes a Model on some backend.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".