Skip to content

Port CPU jpeg encoder to stable ABI.#9543

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/encoder-jpeg-cpu-stable
Jul 7, 2026
Merged

Port CPU jpeg encoder to stable ABI.#9543
NicolasHug merged 1 commit into
mainfrom
adabeyta/encoder-jpeg-cpu-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Ports CPU jpeg encoder to stable ABI reusing image_stable extension.

Layout Changes

  • setup.py: common_jpeg.cpp now builds into both extensions (unstable decode_jpeg still needs it).
  • setup.py: make_image_stable_extension() gains libjpeg detection.

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 drops 48 → 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 6, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 Unclassified Failure

As of commit ba76065 with merge base 0bc41e6 (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 6, 2026
@adabeyta adabeyta marked this pull request as ready for review July 6, 2026 22:21
@adabeyta adabeyta requested a review from NicolasHug July 6, 2026 22:21

@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 changed the title [TEST] Port CPU jpeg encoder to stable ABI. Port CPU jpeg encoder to stable ABI. Jul 7, 2026
@NicolasHug NicolasHug merged commit da44627 into main Jul 7, 2026
60 checks passed
@NicolasHug NicolasHug deleted the adabeyta/encoder-jpeg-cpu-stable branch July 7, 2026 07:49
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