Skip to content

Port roi_pool (MPS) to stable ABI. - #9583

Merged
adabeyta merged 1 commit into
mainfrom
adabeyta/roi-pool-mps-stable
Aug 19, 2026
Merged

adabeyta merged 1 commit into
mainfrom
adabeyta/roi-pool-mps-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Ports roi_pool's MPS kernels to the stable ABI.

Notes

@pytorch-bot

pytorch-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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

@meta-cla meta-cla Bot added the cla signed label Aug 4, 2026
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch from 99f447f to 4fd4d29 Compare August 4, 2026 23:10
@NicolasHug
NicolasHug force-pushed the adabeyta/roi-pool-mps-stable branch from 4fd4d29 to 1981680 Compare August 5, 2026 14:09
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch from 1981680 to 68086b7 Compare August 11, 2026 22:37
@adabeyta
adabeyta changed the base branch from adabeyta/roi-pool-cuda-stable to main August 17, 2026 20:27
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch from 68086b7 to fa35168 Compare August 17, 2026 20:34
@adabeyta adabeyta changed the title [Test] Port roi_pool (MPS) to stable ABI. Port roi_pool (MPS) to stable ABI. Aug 18, 2026
@adabeyta
adabeyta marked this pull request as ready for review August 18, 2026 12:56
@adabeyta
adabeyta requested a review from NicolasHug August 18, 2026 12:56

@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.

alright I'll just believe you on this one :) ! Thanks @adabeyta

QQ since pytorch/pytorch#190932 has now merged, is there any cleanup we need to do to the existing stable MPS kernels? I might not remember correctly but I thought some of them might still launder raw scalar within 1-element tensors?

@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch from fa35168 to e7fcbb6 Compare August 18, 2026 23:16
@adabeyta

Copy link
Copy Markdown
Collaborator Author

alright I'll just believe you on this one :) ! Thanks @adabeyta

QQ since pytorch/pytorch#190932 has now merged, is there any cleanup we need to do to the existing stable MPS kernels? I might not remember correctly but I thought some of them might still launder raw scalar within 1-element tensors?

Thanks! Yeah the MPS ports aren't as 1:1 as the CPU ones, the Metal encoder and dispatch calls all get reexpressed through the stable shim functions now so the old and new code don't line up side by side.

As for cleanup after #190932 just nms carries iou_threshold in a 1-element tensor.

Filed #9614 to clean that up! 😄

@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch 2 times, most recently from 6e61e0f to af8fb24 Compare August 19, 2026 14:19
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-mps-stable branch from af8fb24 to 54a5492 Compare August 19, 2026 15:16
@adabeyta
adabeyta merged commit c33b16a into main Aug 19, 2026
43 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