Skip to content
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

Added decomp for bilinear upsample that uses matmul #112

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

LPanosTT
Copy link
Contributor

@LPanosTT LPanosTT commented Dec 11, 2024

Added custom decomposition for aten.upsample_bilinear2d which uses matmuls to compute the upsample.

Added a CUSTOM_DECOMPOSITION_TABLE so we can distinguish between which decompositions are ours and which are not.

Pass a table to apply_decompositions instead.

@LPanosTT LPanosTT marked this pull request as draft December 11, 2024 16:12
@LPanosTT LPanosTT force-pushed the lpanos/custom_bilinear_decomp branch 3 times, most recently from aadbaff to ba0bb7b Compare December 18, 2024 17:35
@LPanosTT LPanosTT marked this pull request as ready for review December 18, 2024 17:38
@LPanosTT LPanosTT requested a review from uazizTT December 18, 2024 17:38
@LPanosTT LPanosTT force-pushed the lpanos/custom_bilinear_decomp branch 2 times, most recently from 53cee8f to 618e822 Compare December 18, 2024 19:34
@@ -67,6 +68,85 @@ def _extend_context_manager(
), "contextmanager unbalanced: popped different that pushed"


# This method is derived from the implementation of jax.image.resize in JAX:
# https://github.com/jax-ml/jax/blob/354bd5271077654af983965c8e01ee462ce4ce91/jax/_src/image/scale.py#L52
Copy link
Contributor

Choose a reason for hiding this comment

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

What licence is this published under? Do we need to add it to our licence files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@LPanosTT LPanosTT force-pushed the lpanos/custom_bilinear_decomp branch from 618e822 to f0b1506 Compare December 18, 2024 19:41
@LPanosTT LPanosTT merged commit a8bfcb4 into main Dec 19, 2024
4 checks passed
@LPanosTT LPanosTT deleted the lpanos/custom_bilinear_decomp branch December 19, 2024 14:26
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