Crate cervo_nnef

source ·
Expand description

Contains utilities for using cervo with NNEF.

If you’re going to defer loading NNEF files to runtime, consider running init ahead of time to remove some overhead from the first load call.

§Loading an inference model

use cervo_core::prelude::InfererExt;

let model_data = load_bytes("model.nnef");
let model = cervo_nnef::builder(model_data)
    .build_fixed(&[2])?
    .with_default_epsilon("epsilon");

Structs§

  • A reader for providing NNEF data.

Functions§