Commit 2d253df
Create ReLU6 Vulkan Compute Shader & Add Op To Backend Delegate
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.
Differential Revision: D781246071 parent 1333b36 commit 2d253df
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 | |
|---|---|---|---|
| |||
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| 1514 | + | |
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
| |||
0 commit comments