Commit 585e3ce
committed
refactor: auto-detect operator implementations via SFINAE
Replace the manual `ActiveImplementationsImpl` slot system with
`std::is_base_of`-based compile-time detection. A real `Operator`
specialization inherits from `Key` (e.g., `Gemm`), while the primary
template inherits only from `OperatorBase` — SFINAE distinguishes the
two automatically, eliminating the need for `registry.h` files.1 parent b2b1e6a commit 585e3ce
File tree
8 files changed
+30
-66
lines changed- src
- nvidia/gemm
- torch
- add
- gemm
8 files changed
+30
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
92 | 88 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 89 | + | |
103 | 90 | | |
104 | 91 | | |
105 | 92 | | |
| |||
161 | 148 | | |
162 | 149 | | |
163 | 150 | | |
164 | | - | |
| 151 | + | |
165 | 152 | | |
166 | 153 | | |
167 | 154 | | |
| |||
208 | 195 | | |
209 | 196 | | |
210 | 197 | | |
211 | | - | |
| 198 | + | |
| 199 | + | |
212 | 200 | | |
213 | 201 | | |
214 | 202 | | |
| |||
235 | 223 | | |
236 | 224 | | |
237 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
238 | 251 | | |
239 | 252 | | |
240 | 253 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
This file was deleted.
0 commit comments