mil_infer 0.5.2

Sovereign Apple Neural Engine compiler, decompiler, and runtime: native HWX Mach-O emitter + decompiler, MIL DAG graph scheduler, on-chip ANE backprop/SGD training, zero-copy IOSurface/Espresso execution.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// quick: call Anec::validate on conv1 to see detailed verdict
fn main() {
    let a = mil_infer::anec::Anec::open().unwrap();
    let v = a
        .validate(
            std::path::Path::new("/tmp/ane_dissect/conv1/net.mil"),
            "h16",
        )
        .unwrap();
    println!(
        "rc={} status={:#x}\nerrors={:?}\ndetail={}",
        v.rc, v.status, v.errors, v.detail
    );
}