Skip to content

Allow resize to use uint8 path on ARM - #9439

Merged
NicolasHug merged 3 commits into
pytorch:mainfrom
NicolasHug:resize_aarch64
Mar 16, 2026
Merged

NicolasHug merged 3 commits into
pytorch:mainfrom
NicolasHug:resize_aarch64

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Mar 12, 2026 •

Copy link
Copy Markdown
Member

pytorch/pytorch#176217 added a NEON ARM implem of interpolate() which is much faster.

Currently in torchvision, the ARM paths go through int -> float -> interpolate (as float) -> int. This is due to various historical reasons. The point is: torchvision's resize with ARM cannot use native uint8 paths ATM. So this PR enables that, which transitively means that v2.resize will now run on the fast NEON implem. Expect 3X - 6X speedups (See pytorch/pytorch#176217)

cc @vfdev-5

@pytorch-bot

pytorch-bot Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9439

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 12 Pending

As of commit 0453677 with merge base 5328524 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the cla signed label Mar 12, 2026
@NicolasHug
NicolasHug merged commit 8a5946e into pytorch:main Mar 16, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant