Install
Cargo.toml··bash
[dependencies]neuronscope = "0.6"Example
main.rs··rust
use neuronscope::Artifact;
fn main() -> anyhow::Result<()> {
let a = Artifact::open("baseline.nsz")?;
println!("arch fingerprint: {}", a.fingerprint().arch);
for layer in a.layers() {
println!("{}: {:?} {}", layer.name, layer.shape, layer.dtype);
}
Ok(())
}Scope
- Read
.nszartifacts with zero-copy over mmap. - Compute the standard comparison metrics against another artifact.
- Emit the same JSON as
ns show --json.