pub mod ort;
pub mod rten;
use anyhow::Result;
use std::collections::HashMap;
use std::path::Path;
#[derive(Debug, Clone)]
pub struct Tensor {
pub shape: Vec<usize>,
pub data: Vec<f32>,
}
pub trait InferenceSession {
fn run(&mut self, inputs: &[(&str, &Tensor)]) -> Result<HashMap<String, Tensor>>;
}
pub trait InferenceRuntime {
type Session: InferenceSession;
fn load_model(&self, path: &Path) -> Result<Self::Session>;
}