crates/wasi-nn/examples/classification-example-winml/README.md
This example project demonstrates using the wasi-nn API to perform WinML-based
inference. We first build Wasmtime, a fast and secure runtime for WebAssembly,
and then build a WebAssembly example, which:
fixture/kitten.png,fixture/mobilenet.onnxTo run this example, perform the following steps on Windows 10 v1803 and later:
winml
feature:
cargo build --release --features wasmtime-wasi-nn/winml
set PROJECT_DIR=%CD%
cd crates\wasi-nn\examples\classification-example-winml
wasm32-wasip1 Rust target:
rustup target add wasm32-wasip1
wasm32-wasip1 output is a WebAssembly file:
cargo build --release --target=wasm32-wasip1
%PROJECT_DIR%\target\release\wasmtime.exe --dir fixture::fixture -S nn target\wasm32-wasip1\release\wasi-nn-example-winml.wasm
fixture directory
along with any path changes this may cause src/main.rs.