#[cfg(feature = "ort")]
pub mod ort;
pub mod rten;
use anyhow::Result;
use std::collections::HashMap;
use std::path::Path;
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct Tensor {
pub shape: Vec<usize>,
pub data: Vec<f32>,
}
pub trait Model {
fn run(&mut self, inputs: &[(&str, &Tensor)]) -> Result<HashMap<String, Tensor>>;
}
pub trait Runtime {
type Model: Model;
fn load_model(&self, path: &Path) -> Result<Self::Model>;
}