Aharrypotter commented on issue #19505:
URL: https://github.com/apache/tvm/issues/19505#issuecomment-4390833916

   Update: PR #19515 is up with a working implementation.
   
   **What it does**
   - Wraps the official ONNX Backend Test Suite (node-level tests) around 
`relax.frontend.onnx.from_onnx`
   - Implements `onnx.backend.base.Backend` interface: import → 
`DecomposeOpsForInference()` → `LegalizeOps()` → `detach_params()` → 
`tvm.compile()` → VM execution
   - Compares VM outputs against ONNX's protobuf reference outputs
   
   **Current numbers**
   - 72 operators with 388 test cases, all passing.
   - No xfail markers — only operators where every ONNX node test passes are 
included
   - Uncovered operators (cast, reduce, reshape, resize, quantization, etc.) 
are excluded via allowlist and can be added incrementally
   
   **Key design points**
   - `NodeModel` tests only; real/simple/PyTorch model tests filtered out
   - `SKIP_SLOW_TESTS=1` supported for fast local iteration
   - `onnx_backend` pytest marker registered in `conftest.py`
   - Existing `test_frontend_onnx.py` untouched — backend tests complement, not 
replace, TVM-specific tests
   
   Feedback welcome.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to