macro_rules! include_model {
($path:expr) => { ... };
}Expand description
Embeds the bytes of model file, ensuring proper alignment.
This macro uses Rust’s standard library’s include_bytes! macro
to include the model file at compile time.
§Example
ⓘ
static MODEL: &'static [u8] = include_model!("/path/to/model.aicmodel");
let model = Model::from_buffer(MODEL).unwrap();