forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackends.bzl
More file actions
20 lines (17 loc) · 754 Bytes
/
backends.bzl
File metadata and controls
20 lines (17 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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",
]
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",
] + get_all_cpu_backend_targets()