WASI-NN OpenVINO backend error: "source slice length (13956476) does not match destination slice length (5233680) #9379
Labels
bug
Incorrect behavior in the current implementation that needs fixing
Test Case
Zipped Wasm file: wasi_nn_example.zip
Steps to Reproduce
(1)
cargo component new wasi_nn_example
(2) add dependency to
wit-bindgen
inCargo.toml
. Here's the fullCargo.toml
:(3) populate
main.rs
w/:(4)
cargo component build --release
(5)
wasmtime -Snn --dir .\fixture\::fixture ..\..\target\wasm32-wasip1\debug\wasi_nn_example.wasm
Expected Results
I expected the
graph::load
function to return a properGraph
and not panic. It's failing in thecopy_from_slice
here:wasmtime/crates/wasi-nn/src/backend/openvino.rs
Line 41 in 8096068
Actual Results
Versions and Environment
Wasmtime version or commit: v25.0.1
Operating system: Microsoft Windows 11 Pro
Architecture: x86_64
Extra Info
cargo-component
version used: v0.16.0I got the model.xml and model.bin from here: https://download.01.org/openvinotoolkit/fixtures/mobilenet/
cc: @abrown
The text was updated successfully, but these errors were encountered: