[BE] Cleanup upsample_ kernel dispatch#176422
[BE] Cleanup upsample_ kernel dispatch#176422NicolasHug wants to merge 12 commits intopytorch:mainfrom
upsample_ kernel dispatch#176422Conversation
…te_bilinear_antialias
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176422
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2fa4440 with merge base 14f828c ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: linux-aarch64 / linux-jammy-aarch64-py3.10 / test (openreg, 1, 1, lf.linux.arm64.m7g.4xlarge) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This is a cleanup for 4 functions:
upsample_bilinear2d_aa_kernel_impl,upsample_bilinear2d_kernel_impl,upsample_bicubic2d_aa_kernel_impl, andupsample_bicubic2d_kernel_impl. They all follow the same dispatch logic but were previously implementing that logic in slightly different ways, and had duplicated calls (to e.g.separable_upsample_generic_Nd_kernel_impl).This PR unifies and simplifies the logic which now looks like this for all 4 functions:
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @aditew01