Skip to content

Port deform_conv2d (MPS) to stable ABI. - #9617

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/deform-conv2d-mps-stable
Aug 20, 2026
Merged

NicolasHug merged 1 commit into
mainfrom
adabeyta/deform-conv2d-mps-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

Notes

  • Shader source moves to deform_conv2d_metal_shader.h.
  • Stable-ABI is missing aten::add.Tensor, so the bias add goes through subtract(self, other, -1.0). Follows the mm_out helper from the CPU port (Port deform_conv2d (CPU) to stable ABI. #9610).

Stable-ABI audit (torch-abi-audit)

Ran torch-abi-audit. deform_conv2d's MPS op moves into the fully-STABLE _C_stable.so (unstable=0) and the unstable _C.so count drops, 53 → 44: deform_conv2d was the last MPS consumer of ATen tensor algebra, so its symbols are uniquely retired instead of shared with the still-legacy kernels. This is a macOS arm64 MPS build against a current nightly, 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=44)
        [STABLE  ] [not-abi3] _C_stable.so     (stable_shim=78, unstable=0)
        [STABLE  ] [not-abi3] image_stable.so  (stable_shim=70, unstable=0)

@pytorch-bot

pytorch-bot Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 Unclassified Failure

As of commit 51b12a2 with merge base c33b16a (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 Aug 19, 2026
@adabeyta adabeyta changed the title [Test] Port deform_conv2d (MPS) to stable ABI. Test] Port deform_conv2d (MPS) to stable ABI. Aug 20, 2026
@adabeyta
adabeyta marked this pull request as ready for review August 20, 2026 12:35
@adabeyta
adabeyta requested a review from NicolasHug August 20, 2026 12:35
@adabeyta adabeyta changed the title Test] Port deform_conv2d (MPS) to stable ABI. Port deform_conv2d (MPS) to stable ABI. Aug 20, 2026

@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 d165b02 into main Aug 20, 2026
63 checks passed
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