-
Notifications
You must be signed in to change notification settings - Fork 497
/
Copy pathbackends.bzl
23 lines (20 loc) · 951 Bytes
/
backends.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def get_all_cpu_backend_targets():
"""Returns a list of all CPU backend targets.
For experimenting and testing, not for production, since it will typically
include more than necessary for a particular product.
"""
return [
"//executorch/backends/xnnpack:xnnpack_backend",
"//executorch/backends/fb/qnnpack:qnnpack_backend",
]
def get_all_cpu_aot_and_backend_targets():
"""Returns a list of all CPU backend targets with aot (ahead of time).
For experimenting and testing, not for production, since it will typically
include more than necessary for a particular product.
"""
return [
"//executorch/backends/xnnpack:xnnpack_preprocess",
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
"//executorch/backends/fb/qnnpack:qnnpack_preprocess",
"//executorch/backends/fb/qnnpack/partition:qnnpack_partitioner",
] + get_all_cpu_backend_targets()