Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6478 +/- ##
==========================================
+ Coverage 93.23% 93.29% +0.05%
==========================================
Files 852 855 +3
Lines 267286 266929 -357
==========================================
- Hits 249195 249021 -174
+ Misses 18091 17908 -183 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
There was a problem hiding this comment.
Pull request overview
This PR adds Vulkan GPU shader support for the Softplus activation layer. The Softplus function computes log(exp(x) + 1), which is a smooth approximation of the ReLU activation function. The implementation follows the established pattern for simple activation layers in NCNN, with a header file defining the Vulkan-specific layer class, a C++ implementation file handling pipeline creation/destruction and dispatching, and a GLSL compute shader implementing the actual Softplus computation.
Changes:
- Added Vulkan layer implementation for Softplus activation (header and source)
- Added GLSL compute shader implementing the Softplus formula
log(exp(v) + 1) - Follows the established pattern for simple inplace activation layers
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/layer/vulkan/softplus_vulkan.h | Header file defining the Softplus_vulkan class with pipeline management and forward_inplace methods |
| src/layer/vulkan/softplus_vulkan.cpp | Implementation of pipeline creation, destruction, and compute dispatch logic |
| src/layer/vulkan/shader/softplus.comp | GLSL compute shader implementing the Softplus activation function |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thanks for your contribution ! |
No description provided.