-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Relax][PyTorch] Add Pad Op Support for Exported Program and FX graph #17821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@tvm-bot rerun |
1 similar comment
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/14396550088 Detailswith response |
|
@tvm-bot rerun |
1 similar comment
|
@tvm-bot rerun |
f7319c0 to
e1abc2c
Compare
|
I am just trying to convert pix2pix GAN model to TVM and came across this issue that currently no padding (ReflectionPad2d/ZeroPadding) is supported. Really thanks for this push and hope the change is pulled in soon. |
|
@Hzfengsy Could you please review this pr? |
|
cc @tlopex |
|
LGTM! Thanks! @Deivanayaki-S |
|
Please address the conflict :) |
fixing end of files formatting issue fixing trailing space issues update the docstring for pad mode in nn file fixing lint issues remove trailing whitespaces fix lint format issues in test script fix lint issue in pad file import statement modify docstring of pad function fixing dtype error in unity check fixing lint issues in pad.py file resolve arg mismatch error resolved error while handling pad value attr fix dtype of pad value attribute add helper function for different pad mode test script enhanced to check different pad mode remove trailing whitespaces in test script add docstring for helper function update test script
0fd7761 to
986ea7d
Compare
|
@Hzfengsy the conflict has been resolved. Thanks :) |
…apache#17821) * add pad op support into frontend pipelines fixing end of files formatting issue fixing trailing space issues update the docstring for pad mode in nn file fixing lint issues remove trailing whitespaces fix lint format issues in test script fix lint issue in pad file import statement modify docstring of pad function fixing dtype error in unity check fixing lint issues in pad.py file resolve arg mismatch error resolved error while handling pad value attr fix dtype of pad value attribute add helper function for different pad mode test script enhanced to check different pad mode remove trailing whitespaces in test script add docstring for helper function update test script * fix pad op arg handling in fx graph * fix issue by updated the retrieval of value arg --------- Co-authored-by: deivanayakisankaralingam <deiva@Deivanayaki>
This PR adds support for the pad operation in Relax with handling for all common padding modes (constant, reflect, replicate, and circular). By adding this support, the following models are now able to run successfully: