ChihweiLHBird opened PR #14532 from ChihweiLHBird:wasi-nn-onnx-input-errors to bytecodealliance:main:
The ONNX backend panics the host for an input tensor whose type is not
f32, and for anf32tensor whose byte length is not a multiple of four. This change returns aBackendErrorin both cases and adds tests for the byte length check on the WIT and WITX paths.
ChihweiLHBird updated PR #14532.
ChihweiLHBird has marked PR #14532 as ready for review.
ChihweiLHBird requested rvolosatovs for a review on PR #14532.
ChihweiLHBird requested wasmtime-wasi-reviewers for a review on PR #14532.
ChihweiLHBird requested alexcrichton for a review on PR #14532.
ChihweiLHBird requested wasmtime-core-reviewers for a review on PR #14532.
alexcrichton commented on PR #14532:
@rahulchaphalkar would you be ok if I flagged you for review for this?
rahulchaphalkar commented on PR #14532:
@rahulchaphalkar would you be ok if I flagged you for review for this?
Sure!
alexcrichton unassigned rvolosatovs from PR #14532 wasi-nn: return errors for invalid ONNX input tensors.
ChihweiLHBird commented on PR #14532:
Hi @rahulchaphalkar, thank you! And let me know if you need anything from me.
ChihweiLHBird edited a comment on PR #14532:
Hi @rahulchaphalkar @alexcrichton, thank you! And let me know if you need anything from me.
alexcrichton added the label wasi-nn on PR #14532.
alexcrichton removed the review request for alexcrichton from PR #14532.
rahulchaphalkar commented on PR #14532:
@alexcrichton @ChihweiLHBird I apologize for the delay, I was on a short break. On it now.
:thumbs_up: rahulchaphalkar submitted PR review:
Thanks for the changes, looks good
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #14532 wasi-nn: return errors for invalid ONNX input tensors to the merge queue.
:check: alexcrichton merged PR #14532.
alexcrichton removed PR #14532 wasi-nn: return errors for invalid ONNX input tensors from the merge queue.
Last updated: Oct 31 2026 at 23:03 UTC