Skip to content

Port CPU decode_png to stable ABI. - #9552

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/decode-png-stable
Jul 14, 2026
Merged

NicolasHug merged 1 commit into
mainfrom
adabeyta/decode-png-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Ports CPU png decoder to stable ABI.

Notes:

Missing StableABI ops

Shared exif.h

  • exif.h is shared with the unstable decode_jpeg, and its orientation transform returns tensors, so the header gains a stable-typed gated on the existing TORCH_TARGET_VERSION. The unstable branch is removed when decode_jpeg is ported.

Notes: libpng leaves the unstable extension

Stable-ABI audit (torch-abi-audit)

Ran torch-abi-audit against the built torchvision package. image_stable.so audits as STABLE 73 stable-shim symbols, 0 unstable The legacy image.so drops 45 → 37 unstable.

    Package: torchvision
      Torch ABI:   UNSTABLE
      CPython ABI: n/a
      Bundled libs: 4
      -- bundled libs --
        [UNSTABLE] [not-abi3        ] _C.so            (stable_shim=0,  unstable=110)
        [STABLE  ] [not-abi3        ] _C_stable.so     (stable_shim=67, unstable=0)
        [UNSTABLE] [uses-private-api] image.so         (stable_shim=0,  unstable=37)
        [STABLE  ] [not-abi3        ] image_stable.so  (stable_shim=73, unstable=0)

@pytorch-bot

pytorch-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🔗 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 Failure

As of commit e4f5d66 with merge base 3e56edb (image):

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.

@meta-cla meta-cla Bot added the cla signed label Jul 13, 2026
@adabeyta
adabeyta requested a review from NicolasHug July 13, 2026 19:29
@adabeyta adabeyta changed the title [Test] Port CPU decode_png to stable ABI. Port CPU decode_png to stable ABI. Jul 13, 2026
@adabeyta
adabeyta marked this pull request as ready for review July 13, 2026 19:29

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @adabeyta !

@NicolasHug
NicolasHug merged commit adcba9a into main Jul 14, 2026
67 of 68 checks passed
@NicolasHug
NicolasHug deleted the adabeyta/decode-png-stable branch July 14, 2026 08:30
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.

2 participants