1
1
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
2
- load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
3
2
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
4
3
5
4
oncall("executorch")
6
5
7
- python_library(
8
- name = "yaml_generator_lib",
9
- srcs = [
10
- "yaml_generator.py",
11
- ],
12
- deps = [
13
- "fbsource//third-party/pypi/expecttest:expecttest", # @manual
14
- "fbsource//third-party/pypi/ruamel-yaml:ruamel-yaml",
15
- ":support_dtypes",
16
- ":utils",
17
- "//caffe2:torch",
18
- "//pye/lib:eager_model_base",
19
- ],
20
- )
21
-
22
- python_binary(
23
- name = "yaml_generator",
24
- srcs = [
25
- "yaml_generator.py",
26
- ],
27
- main_module = "executorch.exir.dialects.edge.yaml_generator",
28
- deps = [
29
- "fbsource//third-party/pypi/expecttest:expecttest", # @manual
30
- "fbsource//third-party/pypi/ruamel-yaml:ruamel-yaml",
31
- ":support_dtypes",
32
- ":utils",
33
- "//caffe2:torch",
34
- "//pye/lib:eager_model_base",
35
- ],
36
- )
37
-
38
6
python_library(
39
7
name = "lib",
40
8
srcs = [
@@ -46,36 +14,16 @@ python_library(
46
14
deps = [
47
15
"fbsource//third-party/pypi/ruamel-yaml:ruamel-yaml",
48
16
"fbsource//third-party/pypi/setuptools:setuptools",
49
- ":support_dtypes",
50
- ":utils",
51
17
"//caffe2:torch",
52
18
"//caffe2/torchgen:torchgen",
19
+ "//executorch/exir/dialects/edge/dtype:lib",
20
+ "//executorch/exir/dialects/edge/spec:lib",
53
21
"//executorch/exir/operator:convert",
54
22
],
55
23
)
56
24
57
- python_library(
58
- name = "support_dtypes",
59
- srcs = [
60
- "support_dtypes.py",
61
- ],
62
- deps = [
63
- "//caffe2:torch",
64
- ],
65
- )
66
-
67
25
export_file(
68
26
name = "edge_yaml",
69
27
src = "edge.yaml",
70
28
visibility = ["//executorch/..."],
71
29
)
72
-
73
- python_library(
74
- name = "utils",
75
- srcs = [
76
- "utils.py",
77
- ],
78
- deps = [
79
- "//caffe2:torch",
80
- ],
81
- )
0 commit comments