Skip to content

[torchax] Added support for bicubic and billinear resampling #9196

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zmelumian972
Copy link
Contributor

Currently torchax does not support image resampling with antialiasing enabled

that, and the current implantation for bicubic resampling does not match torch

this PR aims to fix that

@qihqi qihqi self-requested a review May 19, 2025 18:45
size[1],
align_corners,
)
return _aten_upsample(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, you want to raise OperatorNotFound so it will go through the old code path (and hopefully pass the tests in test_ops.py for interpolate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it, it does not pass the test I built at torchax/test/test_image.py (torchax.tensor.OperatorNotFound: Operator with name aten::_upsample_bicubic2d_aa has no lowering) , so either I did something wrong building this test or I did something wrong building the operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants