-
Notifications
You must be signed in to change notification settings - Fork 4.4k
gridsample vulkan shader #6474
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
base: master
Are you sure you want to change the base?
gridsample vulkan shader #6474
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6474 +/- ##
===========================================
- Coverage 95.90% 94.79% -1.12%
===========================================
Files 845 548 -297
Lines 265399 160114 -105285
===========================================
- Hits 254531 151779 -102752
+ Misses 10868 8335 -2533 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Vulkan shader support for the GridSample layer, enabling GPU-accelerated grid sampling operations with bilinear, nearest, and bicubic interpolation modes.
Key Changes
- Implements a complete Vulkan compute shader for grid sampling with support for 2D and 3D input tensors
- Adds GridSample_vulkan class with pipeline creation, destruction, and forward pass implementation
- Supports multiple interpolation modes (bilinear, nearest, bicubic) and padding modes (zeros, border, reflection)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/layer/vulkan/shader/gridsample.comp | Complete compute shader implementing grid sampling with coordinate transformations, boundary handling, and interpolation algorithms |
| src/layer/vulkan/gridsample_vulkan.h | Header file declaring the GridSample_vulkan class inheriting from GridSample base class |
| src/layer/vulkan/gridsample_vulkan.cpp | Implementation of Vulkan-specific pipeline management and forward pass with dynamic dimension handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
|
Please enable github action in YOUR FORKED REPO to make code-format workflow work |
No description provided.