Commit 31e6073
Create ReLU6 Vulkan Compute Shader & Add Op To Backend Delegate (#12558)
Summary:
This diff adds support for the ReLU6 activation function in the Vulkan backend of Executorch. It introduces a Vulkan compute shader for ReLU6 and integrates the new op into the Vulkan delegate for execution. This enables models using ReLU6 to run efficiently on Vulkan targets, improving compatibility and expanding the delegate’s supported op set. The shader supports both buffer and texture data formats, enabling flexible deployment across different memory storage modes and ensuring compatibility with a wide range of models and execution environments.
Reviewed By: SS-JIA
Differential Revision: D781246071 parent c75e37a commit 31e6073
File tree
2 files changed
+8
-0
lines changed- backends/vulkan
- runtime/graph/ops/impl
- test/op_tests
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| |||
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
| 1529 | + | |
1529 | 1530 | | |
1530 | 1531 | | |
1531 | 1532 | | |
| |||
0 commit comments