Skip to content

Port CPU decode_image to stable ABI. - #9550

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/decode-image-stable
Jul 13, 2026
Merged

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

Conversation

@adabeyta

Copy link
Copy Markdown
Collaborator

Ports CPU decode_image to stable ABI.

Notes: Missing stable ABI shims

  • decode_image selects between the four CPU decoders (jpeg,png,gif,webp), which are still on the unstable extension. Until each one is ported it calls them through torch_call_dispatcher on the registered image::decode_* ops, following the same pattern as stable_permute from Port CPU png encoder to stable ABI. #9539.

Stable-ABI audit (torch-abi-audit)

Ran torch-abi-audit against the built torchvision package. image_stable.so audits as STABLE — 68 stable-shim symbols, 0 unstable The legacy image.so stays at 45 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=45)
        [STABLE  ] [not-abi3        ] image_stable.so  (stable_shim=68, unstable=0)

@pytorch-bot

pytorch-bot Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ You can merge normally! (2 Unrelated Failures), 1 Unclassified Failure

As of commit aedd99f with merge base b9e9552 (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:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@meta-cla meta-cla Bot added the cla signed label Jul 10, 2026
@adabeyta adabeyta changed the title Port CPU decode_image to stable ABI. [Test] Port CPU decode_image to stable ABI. Jul 10, 2026
@adabeyta
adabeyta force-pushed the adabeyta/decode-image-stable branch from 4156c9b to 0bbdae4 Compare July 10, 2026 23:44
@adabeyta
adabeyta force-pushed the adabeyta/decode-image-stable branch from 0bbdae4 to aedd99f Compare July 11, 2026 00:00
@adabeyta adabeyta changed the title [Test] Port CPU decode_image to stable ABI. Port CPU decode_image to stable ABI. Jul 11, 2026
@adabeyta
adabeyta requested a review from NicolasHug July 11, 2026 05:35
@adabeyta
adabeyta marked this pull request as ready for review July 11, 2026 05:35

@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 3e56edb into main Jul 13, 2026
59 of 63 checks passed
@NicolasHug
NicolasHug deleted the adabeyta/decode-image-stable branch July 13, 2026 08:54
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