Function wasmtime_wasi_nn::preload

source ยท
pub fn preload(
    preload_graphs: &[(String, String)]
) -> Result<(impl IntoIterator<Item = Backend>, Registry)>
Expand description

Construct an in-memory registry from the available backends and a list of (<backend name>, <graph directory>). This assumes graphs can be loaded from a local directory, which is a safe assumption currently for the current model types.