RuntimeBackend

Trait RuntimeBackend 

Source
pub trait RuntimeBackend: Send + Sync {
    // Required methods
    fn infer(&mut self, input: InferenceInput) -> EdgeResult<InferenceOutput>;
    fn model_info(&self) -> HashMap<String, Value>;
    fn is_ready(&self) -> bool;
    fn backend_info(&self) -> HashMap<String, Value>;
}
Expand description

Generic inference runtime trait

Required Methods§

Source

fn infer(&mut self, input: InferenceInput) -> EdgeResult<InferenceOutput>

Run inference with the given inputs

Source

fn model_info(&self) -> HashMap<String, Value>

Get model information

Source

fn is_ready(&self) -> bool

Check if the runtime is ready for inference

Source

fn backend_info(&self) -> HashMap<String, Value>

Get backend-specific metadata

Implementors§