bytecodealliance / wasi-nn

High-level bindings for wasi-nn system calls
Apache License 2.0
45 stars 35 forks source link

Better tools for debugging OpenVINO #47

Open brianjjones opened 3 years ago

brianjjones commented 3 years ago

Currently if our build breaks because of OpenVINO, we get very generic and unhelpful error messages that don't give a clear picture of what is going wrong. Perhaps figuring out how to either build with debug symbols or some additional CI tests to ensure things work as expected.

brianjjones commented 3 years ago

An example of the issue...

I get the following error with the newer openvino 2021.3.394, but not with openvino 2020.4.287.

Read graph XML, first 50 characters: <?xml version="1.0" ?> <net name="AlexNet" version Read graph weights, size in bytes: 243860936 Loaded graph into wasi-nn with ID: 0 Created wasi-nn execution context with ID: 0 Read input tensor, size in bytes: 618348 Host error: OpenvinoError(GeneralError) thread 'main' panicked at 'not implemented', crates/wasi-nn/src/witx.rs:17:46 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace