Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime {
    type Model: Model;

    // Required method
    fn load_model(&self, path: &Path) -> Result<Self::Model>;
}
Expand description

Factory for loading models from ONNX files.

Required Associated Types§

Required Methods§

Source

fn load_model(&self, path: &Path) -> Result<Self::Model>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Runtime for RtenRuntime

Source§

type Model = RtenModel