-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathTARGETS
102 lines (92 loc) · 2.26 KB
/
TARGETS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Copyright (c) 2023 Apple Inc. All rights reserved.
# Provided subject to the LICENSE file in the top level directory.
#
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load(":targets.bzl", "define_common_targets")
oncall("executorch")
define_common_targets()
runtime.python_library(
name = "backend",
srcs = [
"__init__.py",
"mps_preprocess.py",
],
visibility = [
"@EXECUTORCH_CLIENTS",
],
deps = [
":operators",
":serialization",
":utils",
"//caffe2:torch",
"//executorch/exir/backend:backend_details",
"//executorch/exir/backend:compile_spec_schema",
],
)
runtime.python_library(
name = "operators",
srcs = glob([
"operators/*.py",
]),
deps = [
":serialization",
":utils",
"//executorch/backends/transforms:lib",
],
)
runtime.python_library(
name = "partitioner",
srcs = glob([
"partition/*.py",
]),
visibility = [
"@EXECUTORCH_CLIENTS",
],
deps = [
":backend",
"//caffe2:torch",
"//executorch/exir/backend:compile_spec_schema",
"//executorch/exir/backend:partitioner",
"//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib",
],
)
runtime.python_library(
name = "serialization",
srcs = glob([
"serialization/*.py",
]),
resources = [
"serialization/schema.fbs",
],
)
runtime.python_library(
name = "utils",
srcs = glob([
"utils/*.py",
]),
deps = [
":serialization",
"//caffe2:torch",
"//executorch/exir:lib",
],
)
runtime.python_test(
name = "test",
srcs = glob([
"test/*.py",
]),
deps = [
":backend",
":partitioner",
"//caffe2:torch",
"//executorch/examples/models:models",
"//executorch/exir/tests:models",
"//executorch/extension/export_util:export_util",
"//executorch/devtools:lib",
"//executorch/devtools/bundled_program/serialize:lib",
"fbsource//third-party/pypi/pytest:pytest",
],
)