-
Notifications
You must be signed in to change notification settings - Fork 527
/
Copy pathTARGETS
70 lines (64 loc) · 1.54 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
load("@fbcode_macros//build_defs:cpp_python_extension.bzl", "cpp_python_extension")
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
oncall("executorch")
cpp_python_extension(
name = "bindings",
srcs = [
"bindings.cpp",
],
deps = [
"fbsource//third-party/pybind11:pybind11",
"//caffe2:torch-cpp-cpu",
"//caffe2:torch_extension",
"//caffe2/c10:c10",
],
)
python_library(
name = "interpreter",
srcs = [
"interpreter.py",
],
deps = [
":bindings", # @manual
"//caffe2:torch",
"//executorch/exir:lib",
"//executorch/exir:schema",
"//executorch/exir:tensor",
"//executorch/extension/pytree:pylib",
],
)
python_library(
name = "devhtml",
srcs = [
"dev_html.py",
],
deps = [
":interpreter", # @manual
],
)
python_library(
name = "verifier",
srcs = [
"arg_validator.py",
"verifier.py",
],
deps = [
"//caffe2:torch",
"//executorch/exir:error",
"//executorch/exir:lowered_backend_module",
"//executorch/exir/capture:config",
"//executorch/exir/dialects/edge:lib",
"//executorch/exir/emit:emit",
],
)
python_unittest(
name = "test_verifier",
srcs = ["test/test_verifier.py"],
deps = [
":verifier",
"//caffe2:torch",
"//executorch/exir:lib",
"//executorch/exir/dialects:lib",
],
)