The GitHub Actions job "Lint" on tvm.git/main has failed.
Run started by GitHub user tlopex (triggered by tlopex).

Head commit for run:
da52d7d0f62e2831212763189870caf447c85bb0 / Matt Van Horn 
<[email protected]>
fix: Support 5D volumetric inputs in ONNX GridSample frontend converter (#19816)

## Summary
The Relax ONNX frontend's GridSample._impl_v16 converter unconditionally
permutes the grid from ONNX [N,H,W,2] to TVM [N,2,H,W] and calls
image.grid_sample with layout="NCHW". For 5D volumetric inputs
([N,C,D,H,W] with grid [N,D,H,W,3]) this crashes at permute_dims with an
InternalError ('PermuteDims expects the number of input axes to equal
the ndim of the input tensor.

## Changes
In GridSample._impl_v16, read data.struct_info.ndim and dispatch on
rank. For ndim==4, keep the existing permute_dims(grid,[0,3,1,2]) +
grid_sample(layout="NCHW").

Fixes #19688

---------

Co-authored-by: Matt Van Horn <[email protected]>

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

With regards,
GitHub Actions via GitBox


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

Reply via email to