@@ -38,6 +38,7 @@ python_library(
3838 deps = [
3939 ":passes",
4040 ":utils",
41+ ":ops_registrations",
4142 "//caffe2:torch",
4243 "//executorch/backends/cadence/aot/quantizer:fusion_pass",
4344 "//executorch/backends/cadence/aot/quantizer:quantizer",
@@ -71,6 +72,8 @@ python_library(
7172 ],
7273 deps = [
7374 ":utils",
75+ ":fuse_ops",
76+ ":simplify_ops",
7477 "//caffe2:torch",
7578 "//executorch/exir:pass_base",
7679 "//executorch/exir/dialects:lib",
@@ -132,6 +135,18 @@ python_library(
132135 ],
133136)
134137
138+ python_library(
139+ name = "graph_builder",
140+ srcs = [
141+ "graph_builder.py",
142+ ],
143+ typing = True,
144+ deps = [
145+ "fbcode//caffe2:torch",
146+ "fbcode//executorch/exir:pass_base",
147+ ],
148+ )
149+
135150python_library(
136151 name = "fuse_ops",
137152 srcs = [
@@ -150,3 +165,34 @@ python_library(
150165 "//executorch/exir/passes:spec_prop_pass",
151166 ],
152167)
168+
169+ python_library(
170+ name = "simplify_ops",
171+ srcs = [
172+ "simplify_ops.py",
173+ ],
174+ typing = True,
175+ deps = [
176+ ":pass_utils",
177+ "//executorch/backends/cadence/aot:pass_utils",
178+ "//executorch/exir:pass_base",
179+ "//executorch/exir/dialects:lib",
180+ ],
181+ )
182+
183+ python_unittest(
184+ name = "test_graph_builder",
185+ srcs = [
186+ "tests/test_graph_builder.py",
187+ ],
188+ typing = True,
189+ deps = [
190+ "//caffe2:torch",
191+ "//executorch/backends/cadence/aot:graph_builder",
192+ "//executorch/backends/cadence/aot:pass_utils",
193+ "//executorch/exir:pass_base",
194+ "//executorch/exir/dialects:lib",
195+ "//later:lib",
196+ ":ops_registrations"
197+ ],
198+ )
0 commit comments