modelc 0.1.1

Compile model weight files to standalone executable binaries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod native;

use std::net::SocketAddr;
use std::path::Path;

use anyhow::Result;

use crate::model::Model;

pub trait CodeGenerator: Send + Sync {
    fn generate(
        &self,
        model: &Model,
        output_dir: &Path,
        listen: SocketAddr,
    ) -> Result<std::path::PathBuf>;
}