pub trait InferenceRuntime {
type Session: InferenceSession;
// Required method
fn load_model(&self, path: &Path) -> Result<Self::Session>;
}Expand description
Factory for creating sessions from ONNX model files.
pub trait InferenceRuntime {
type Session: InferenceSession;
// Required method
fn load_model(&self, path: &Path) -> Result<Self::Session>;
}Factory for creating sessions from ONNX model files.