Trait wasmtime_wasi_nn::backend::BackendFromDir

source ·
pub trait BackendFromDir: BackendInner {
    // Required method
    fn load_from_dir(
        &mut self,
        builders: &Path,
        target: ExecutionTarget
    ) -> Result<Graph, BackendError>;
}
Expand description

Some Backends support loading a Graph from a directory on the filesystem; this is not a general requirement for backends but is useful for the Wasmtime CLI.

Required Methods§

source

fn load_from_dir( &mut self, builders: &Path, target: ExecutionTarget ) -> Result<Graph, BackendError>

Implementors§