Crate wasmtime_wasi_nn

source

Modules§

  • Define the Rust interface a backend must implement in order to be used by this crate. The Box<dyn ...> types returned by these interfaces allow implementations to maintain backend-specific state between calls.
  • Implements the wasi-nn API for the WIT (“preview2”) ABI.
  • Implements the wasi-nn API for the WITX (“preview1”) ABI.

Structs§

Traits§

Functions§

  • 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.