Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RoI torchvision ops #1291

Merged
merged 5 commits into from
Jan 21, 2025
Merged

Add RoI torchvision ops #1291

merged 5 commits into from
Jan 21, 2025

Conversation

frost-intel
Copy link
Contributor

@frost-intel frost-intel commented Jan 15, 2025

Adds SYCL kernels for roi_pool, ps_roi_pool, and ps_roi_align ops, and registers them in torchvision. Code is adapted from existing CUDA kernels, with minimal changes, similar to the existing nms and roi_align ops.

Part of #1290

Testing

For testing, I copied the comprehensive ops test from torchvision repo. I removed the DefornConv test (support to come in a follow-up PR) and autocast xpu tests, since autocast registration in Pytorch would need to be updated.

@xytintel xytintel requested a review from chunhuanMeng January 17, 2025 02:36
@majing921201 majing921201 force-pushed the frost/torchvision_roi_ops branch from 8a8ee8f to 2968883 Compare January 17, 2025 20:34
@frost-intel
Copy link
Contributor Author

I fixed a bug in RoiAlign op where sampling_ratio wasn't being passed properly to the kernel.

@frost-intel frost-intel added this pull request to the merge queue Jan 21, 2025
Merged via the queue into main with commit 65db5bc Jan 21, 2025
6 checks passed
@frost-intel frost-intel deleted the frost/torchvision_roi_ops branch January 21, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants