Repository navigation
Commit 0f0a63f
Jorge Pineda
Update on "[ET-VK][Ops] aten.convolution (Depthwise)"
## Summary
We introduce support for the convolution cases covered by [ATen-VK's default Depthwise implementation](https://github.com/pytorch/pytorch/blob/09c72eaa3f69f90402c86a30abf4fc621298578c/aten/src/ATen/native/vulkan/ops/Convolution.cpp#L68). This is achieved by
- reusing the [existing `conv2d_dw.glsl`](https://github.com/pytorch/pytorch/blob/09c72eaa3f69f90402c86a30abf4fc621298578c/aten/src/ATen/native/vulkan/glsl/conv2d_dw.glsl), and
- [moving special weights prepacking from CPU](https://github.com/pytorch/pytorch/blob/09c72eaa3f69f90402c86a30abf4fc621298578c/aten/src/ATen/native/vulkan/ops/Convolution.cpp#L80-L132) to the GPU in `conv2d_dw_prepack_weights.glsl`.
The implementation is on-par with ATen-VK's Depthwise. This means it only covers:
- `in_channels == groups`, `out_channels == groups`
A full implementation would cover, for any positive integer K:
- `in_channels == groups`, `out_channels == groups * K`
Differential Revision: [D55813511](https://our.internmc.facebook.com/intern/diff/D55813511/)
[ghstack-poisoned]145 files changed
Lines changed: 3750 additions & 3416 deletions
File tree
- .ci
- docker/ci_commit_pins
- scripts
- .github/workflows
- .swift
- coreml_backend_debug
- custom_backend_debug
- executorch_debug
- mps_backend_debug
- optimized_backend_debug
- portable_backend_debug
- quantized_backend_debug
- xnnpack_backend_debug
- backends
- arm/test
- ops
- qualcomm
- builders
- passes
- tests
- utils
- vulkan
- cmake
- runtime
- api
- graph/ops/impl
- test/utils
- xnnpack
- cmake
- third-party
- build
- docs/source
- llm
- examples
- apple
- coreml/scripts
- mps/scripts
- demo-apps
- android/LlamaDemo
- app
- src/main/java/com/example/executorchllamademo
- apple_ios/LLaMA/LLaMA.xcodeproj
- models/llama2
- runner
- qualcomm
- executor_runner
- scripts
- selective_build
- third-party
- exir
- backend
- test
- passes
- serde
- tests
- extension
- android
- jni
- src/main/java/org/pytorch/executorch
- module
- pybindings
- kernels/prim_ops
- test
- sdk
- etrecord
- test/models
- third-party
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
103 | 114 | | |
104 | 115 | | |
105 | 116 | | |
| |||
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| 160 | + | |
149 | 161 | | |
150 | 162 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments