Cargo Features

[dependencies]
wasmtime-wasi-nn = { version = "28.0.0", default-features = false, features = ["openvino", "onnx", "winml", "pytorch"] }
default = openvino, winml

These default features are set whenever wasmtime-wasi-nn is added without default-features = false somewhere in the dependency tree.

openvino default

OpenVINO is available on all platforms; it requires OpenVINO to be installed.

Enables openvino

Affects backend::openvino

onnx

ONNX is available on all platforms.

Enables ort

Affects backend::onnx

winml default

WinML is only available on Windows 10 1809 and later.

Enables windows ^0.52

Affects backend::winml

pytorch

PyTorch is available on all platforms; requires Libtorch to be installed

Enables tch ^0.17.0

Affects backend::pytorch