-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathBUCK
More file actions
70 lines (63 loc) · 2.04 KB
/
Copy pathBUCK
File metadata and controls
70 lines (63 loc) · 2.04 KB
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:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
oncall("executorch")
fbcode_target(_kind = runtime.python_library,
# autodeps has a real hard time tracking the owner of the pybindings
# from portable and the suggested fixes I could find didnt work, so
# just disabling for now
name = "make_test",
srcs = [
"make_test.py",
],
visibility = [
"//executorch/extension/pybindings/...",
"//executorch/runtime/...",
],
deps = [
"//caffe2:torch",
"//caffe2:torch_fx",
"//executorch/devtools/bundled_program:config",
"//executorch/devtools/bundled_program:core",
"//executorch/devtools/bundled_program/serialize:lib",
"//executorch/exir:lib",
"//executorch/exir:pass_manager",
"//executorch/exir:scalar_type",
"//executorch/exir/_serialize:lib",
"//executorch/exir/emit:lib",
"//executorch/exir/passes:lib",
"//executorch/runtime/core:core",
],
)
fbcode_target(_kind = runtime.python_test,
name = "test_pybindings_portable_lib",
srcs = ["test_pybindings.py"],
preload_deps = ["//executorch/kernels/quantized:aot_lib"],
deps = [
":make_test",
"//executorch/extension/pybindings:portable_lib",
],
)
fbcode_target(_kind = runtime.python_test,
name = "test_pybindings_aten_lib",
srcs = ["test_pybindings.py"],
preload_deps = ["//executorch/kernels/quantized:aot_lib"],
deps = [
":make_test",
"//executorch/extension/pybindings:aten_lib",
"//executorch/kernels/quantized:aot_lib",
],
)
fbcode_target(_kind = runtime.python_library,
name = "test_pybindings_lib",
srcs = ["test_pybindings.py"],
deps = [
":make_test",
],
)
fbcode_target(_kind = runtime.python_test,
name = "test_backend_pybinding",
srcs = ["test_backend_pybinding.py"],
deps = [
"//executorch/runtime:runtime",
],
)