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>

Implementors§

Source§

impl Runtime for OrtRuntime

Source§

type Model = OrtModel

Source§

impl Runtime for RtenRuntime

Source§

type Model = RtenModel