Skip to content

Port deform_conv2d (CPU) to stable ABI. - #9610

Merged
NicolasHug merged 2 commits into
mainfrom
adabeyta/deform-conv2d-cpu-stable
Aug 19, 2026
Merged

NicolasHug merged 2 commits into
mainfrom
adabeyta/deform-conv2d-cpu-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Ports deform_conv2d (CPU) to stable ABI.

Notes

  • addmm_ is decomposed as simpler ops, the same way xformers rewrote new_full.
  • Added mm_out helper to StableABICompat.h. Stable-ABI is missing wrapper for any mm/addmm op or for any .out variant.
  • Dropped the *_symint C++ wrappers.** Follows ps_roi_align port Port ps_roi_align (CPU) to stable ABI. #9598).

Stable-ABI audit (torch-abi-audit)

Ran torch-abi-audit. deform_conv2d's CPU op moves into the fully-STABLE _C_stable.so (unstable=0). Unlike the earlier ports the unstable _C.so count drops, 71 → 7: deform_conv2d was the last CPU operator and the last consumer of ATen tensor algebra here, so only legacy registration machinery remains. Four new shim symbols, from subtract and contiguous. This build is CPU-only (FORCE_CUDA=0), so the counts aren't comparable to the 104/70 in the earlier PRs.

      Package: torchvision
        Torch ABI:   UNSTABLE
        CPython ABI: n/a
        Bundled libs: 3
        -- bundled libs --
          [UNSTABLE] [not-abi3] _C.so            (stable_shim=0,  unstable=7)
          [STABLE  ] [not-abi3] _C_stable.so     (stable_shim=64, unstable=0)
          [STABLE  ] [not-abi3] image_stable.so  (stable_shim=69, unstable=0)

@meta-cla meta-cla Bot added the cla signed label Aug 17, 2026
@pytorch-bot

pytorch-bot Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 7 Pending, 1 Unclassified Failure

As of commit 91ac245 with merge base dbe1519 (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.

@adabeyta
adabeyta force-pushed the adabeyta/deform-conv2d-cpu-stable branch from e3e38e1 to a0ed44f Compare August 17, 2026 18:02
@adabeyta
adabeyta marked this pull request as ready for review August 17, 2026 21:44
@adabeyta adabeyta changed the title [Test] Port deform_conv2d (CPU) to stable ABI. Port deform_conv2d (CPU) to stable ABI. Aug 17, 2026
@adabeyta
adabeyta requested a review from NicolasHug August 17, 2026 21:45
@NicolasHug

Copy link
Copy Markdown
Member

Looks like we have a genuine compilation issue on https://github.com/pytorch/vision/actions/runs/32053054293/job/95493141895?pr=9610 (other CUDA builds seem to pass so maybe that's just this job picking up an old torch nightly??)

@NicolasHug
NicolasHug merged commit 6436a89 into main Aug 19, 2026
63 checks passed
@NicolasHug
NicolasHug deleted the adabeyta/deform-conv2d-cpu-stable branch August 19, 2026 08:20
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