Port CPU decode_png to stable ABI. - #9552
Merged
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9552
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Unclassified FailureAs of commit e4f5d66 with merge base 3e56edb ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
adabeyta
marked this pull request as ready for review
July 13, 2026 19:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports CPU png decoder to stable ABI.
Notes:
Missing StableABI ops
flip, which Stable-ABI does not expose yet. Added astable_flipshim tocommon_stable.hfollowing the same pattern asstable_permutefrom Port CPU png encoder to stable ABI. #9539.Shared exif.h
exif.his shared with the unstabledecode_jpeg, and its orientation transform returns tensors, so the header gains a stable-typed gated on the existingTORCH_TARGET_VERSION. The unstable branch is removed whendecode_jpegis ported.Notes: libpng leaves the unstable extension
decode_pngwas the last libpng consumer in the unstableimageextension (encode_pngmoved in Port CPU png encoder to stable ABI. #9539), so libpng detection/linking now applies only toimage_stable.Stable-ABI audit (
torch-abi-audit)Ran
torch-abi-auditagainst the builttorchvisionpackage.image_stable.soaudits asSTABLE73 stable-shim symbols, 0 unstable The legacyimage.sodrops 45 → 37 unstable.