[Relax] Legalize dilated conv_transpose#19842
Conversation
Signed-off-by: Guan-Ming (Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
There was a problem hiding this comment.
Code Review
This pull request adds support for dilated transposed convolutions (1D, 2D, and 3D) in Relax's legalization pass by spatially dilating the kernel using TOPI's dilate operator before calling the transposed convolution. Additionally, it changes the behavior for unsupported layouts/dilations to raise tvm.error.OpNotImplemented instead of silently logging and returning the original call. Corresponding unit tests have been added to verify the new dilation support and the raised exceptions. I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
cc @tlopex |
Why
relax.nn.conv{1,2,3}d_transpose with dilation > 1 silently bailed in legalize and then crashed in VM codegen with an opaque error (#19694).
How