Commit d4cea28
committed
Update base for rebase on "Reuse GELU implementation from PyTorch core"
kernels/optimized doesn't need to support embedded systems, so it can just take a header-only dep on PyTorch.
Note that, because we will pick up Sleef internally and ignore it
externally thanks to ATen vec, this PR gets to enable optimized GELU in OSS.
Testing: CI to make sure this doesn't break mobile build modes; happy to take advice on anything not currently covered that might break.
Differential Revision: [D66335522](https://our.internmc.facebook.com/intern/diff/D66335522/)
[ghstack-poisoned]File tree
226 files changed
+23861
-1594
lines changed- .github
- scripts
- workflows
- backends
- arm
- _passes
- operator_support
- operators
- test
- ops
- passes
- cadence
- aot
- fusion_g3/operators
- tests
- hifi
- kernels
- operators
- third-party/nnlib
- reference/operators
- qualcomm
- _passes
- builders
- quantizer
- tests
- utils
- test
- vulkan
- runtime
- api/containers
- graph/ops/impl
- vk_api
- memory
- xnnpack
- partition
- config
- test
- ops
- build
- codegen/tools
- test
- devtools
- etdump/tests
- examples
- demo-apps
- android/LlamaDemo/app/src/main/java/com/example/executorchllamademo
- react-native/rnllama
- app
- assets/images
- bridge
- ios
- rnllama.xcodeproj
- rnllama.xcworkspace
- rnllama
- Images.xcassets
- AppIcon.appiconset
- SplashScreenBackground.colorset
- SplashScreenLogo.imageset
- Supporting
- models/llama
- runner
- source_transformation
- tokenizer/test
- qualcomm
- oss_scripts
- llama2
- model
- runner
- llama3_2
- runner
- exir
- emit/test
- passes
- program
- tests
- verification
- test
- extension
- benchmark
- android/benchmark
- app/src/main/java/org/pytorch/minibench
- apple/Benchmark
- data_loader
- test
- evalue_util/test
- kernel_util/test
- llm/custom_ops
- memory_allocator/test
- module
- test
- pytree
- aten_util
- test
- runner_util
- test
- tensor
- test
- training/examples/XOR
- test
- kernels
- aten
- cpu
- portable
- cpu
- util/test
- test
- prim_ops/test
- quantized
- test
- test
- runtime
- core
- exec_aten
- testing_util/test
- util/test
- portable_type/test
- test
- executor/test
- kernel/test
- platform/test
- shim/xplat/executorch
- build
- codegen
- kernels/portable
- test
- models
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
226 files changed
+23861
-1594
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
354 | 398 | | |
355 | 399 | | |
356 | 400 | | |
357 | 401 | | |
358 | 402 | | |
359 | | - | |
360 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
361 | 408 | | |
362 | 409 | | |
363 | 410 | | |
| |||
384 | 431 | | |
385 | 432 | | |
386 | 433 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
399 | 455 | | |
400 | | - | |
401 | 456 | | |
402 | | - | |
403 | | - | |
| 457 | + | |
| 458 | + | |
404 | 459 | | |
405 | 460 | | |
406 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
128 | 167 | | |
129 | 168 | | |
130 | 169 | | |
| |||
170 | 209 | | |
171 | 210 | | |
172 | 211 | | |
173 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
174 | 218 | | |
175 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
176 | 224 | | |
177 | 225 | | |
178 | 226 | | |
| |||
212 | 260 | | |
213 | 261 | | |
214 | 262 | | |
| 263 | + | |
215 | 264 | | |
216 | 265 | | |
217 | 266 | | |
| |||
231 | 280 | | |
232 | 281 | | |
233 | 282 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 283 | + | |
238 | 284 | | |
239 | 285 | | |
240 | 286 | | |
| |||
298 | 344 | | |
299 | 345 | | |
300 | 346 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
306 | 352 | | |
307 | 353 | | |
308 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
309 | 363 | | |
310 | 364 | | |
311 | | - | |
| 365 | + | |
312 | 366 | | |
| 367 | + | |
| 368 | + | |
0 commit comments