LudovicoYIN opened a new pull request, #18666: URL: https://github.com/apache/tvm/pull/18666
### Motivation The ONNX Resize operator supports resizing N-D tensors per the ONNX specification. However, the current Relax ONNX frontend only supports 4D inputs and raises an assertion error for valid non-4D models. This PR extends the Relax ONNX Resize converter beyond the 4D-only restriction, aligning behavior with the ONNX specification and ONNX Runtime for supported ranks. ### Changes - Remove the 4D-only assertion in the Relax ONNX Resize converter - Preserve the existing 4D resize path without behavior changes - Support non-4D Resize by lowering to existing resize implementations for supported ranks - Ensure Resize attributes are handled correctly for non-4D cases ### Testing - Verified outputs against ONNX Runtime - Added ONNX Resize tests covering non-4D input cases (`test_resize_nd_sizes`) Fixes: [Bug] Resize N-D import failure: TVM only supports 4D resize2d, but ONNX Resize supports N-D tensors https://github.com/apache/tvm/issues/18608 -- 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]
