This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
examples/classification-component-onnx Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -778,7 +778,7 @@ jobs:
778778 test_wasi_nn :
779779 strategy :
780780 matrix :
781- feature : ["openvino", "onnx"]
781+ feature : ["openvino", "onnx-download "]
782782 os : ["ubuntu-24.04", "windows-2025"]
783783 include :
784784 - os : windows-2025
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ thiserror = { workspace = true }
3333
3434ort = { version = " 2.0.0-rc.2" , default-features = false , features = [
3535 " copy-dylibs" ,
36- " download-binaries" ,
3736], optional = true }
3837tch = { version = " 0.17.0" , default-features = false , optional = true }
3938
@@ -70,6 +69,8 @@ default = ["openvino", "winml"]
7069openvino = [" dep:openvino" ]
7170# ONNX is available on all platforms.
7271onnx = [" dep:ort" ]
72+ # Use prebuilt ONNX Runtime binaries from ort.
73+ onnx-download = [" onnx" , " ort/download-binaries" ]
7374# WinML is only available on Windows 10 1809 and later.
7475winml = [" dep:windows" ]
7576# PyTorch is available on all platforms; requires Libtorch to be installed
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ cargo component build
1212In the Wasmtime root directory, run the following command to build the Wasmtime CLI and run the WebAssembly component:
1313``` sh
1414# build wasmtime with component-model and WASI-NN with ONNX runtime support
15- cargo build --features component-model,wasi-nn,wasmtime-wasi-nn/onnx
15+ cargo build --features component-model,wasi-nn,wasmtime-wasi-nn/onnx-download
1616
1717# run the component with wasmtime
1818./target/debug/wasmtime run \
You can’t perform that action at this time.
0 commit comments