Skip to content

Port CPU decode_jpeg to stable ABI. - #9554

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

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

Conversation

@adabeyta

Copy link
Copy Markdown
Collaborator

Ports CPU jpeg decoder to stable ABI.

Notes:

  • exif.h becomes stable-only, decode_jpeg was the last legacy consumer of exif.h.
  • common_jpeg.cpp stops dual-compiling, with the decoder migrated it builds only into image_stable.
  • libjpeg leaves the legacy extension no unstable TU uses libjpeg anymore, so its detection/linking now applies only to image_stable.

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 37 → 34 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=34)
        [STABLE  ] [not-abi3        ] image_stable.so  (stable_shim=73, unstable=0)

@pytorch-bot

pytorch-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 Unclassified Failure

As of commit 02cdce2 with merge base adcba9a (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 14, 2026
@adabeyta
adabeyta requested a review from NicolasHug July 14, 2026 15:53
@adabeyta adabeyta changed the title [Test] Port CPU decode_jpeg to stable ABI. Port CPU decode_jpeg to stable ABI. Jul 14, 2026
@adabeyta
adabeyta marked this pull request as ready for review July 14, 2026 15:54

@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 864d526 into main Jul 14, 2026
60 checks passed
@NicolasHug
NicolasHug deleted the adabeyta/decode-jpeg-stable branch July 14, 2026 16:23
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