The GitHub Actions job "CI" on tvm.git/fix/relax-onnx-pad-wrap-axes has failed.
Run started by GitHub user siyiweigeHEW (triggered by siyiweigeHEW).

Head commit for run:
411455d36a3748f7576b7d04f9a87acdbac2a184 / FFChopon <[email protected]>
[Relax][Frontend][ONNX] Support Pad mode="wrap" and axes input for opset 18

The ONNX Pad spec adds mode="wrap" (circular padding) and the optional
axes input in opset 18. The Relax ONNX frontend only handled these in
_impl_v19 (added by #19827), which dispatches for opset >= 19; models
with opset 18 still resolve to _impl_v11, which rejects wrap with
OpAttributeInvalid and ignores axes (padding the full rank instead),
so legal opset-18 Pad models fail to import.

Add Pad._impl_v18 with the same wrap/axes handling as _impl_v19: expand
the axes input into full-rank pads and dispatch mode="wrap" to
topi.nn.circular_pad, which already implements circular padding.

Validated by differential testing against onnxruntime over 81 legal
Pad models (3 input shapes x all modes x positive/negative pads, plus
axes cases): the 22 previously-rejected cases (wrap x19, constant+axes
x3) now all import and match onnxruntime; no regression on the 59
already-supported cases.

Co-Authored-By: Claude <[email protected]>

Report URL: https://github.com/apache/tvm/actions/runs/32074836795

With regards,
GitHub Actions via GitBox


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

Reply via email to