| # @noautodeps |
| load("@fbcode_macros//build_defs:python_library.bzl", "python_library") |
| |
| python_library( |
| name = "node_visitor", |
| srcs = ["node_visitor.py"], |
| typing = True, |
| deps = [ |
| "//executorch/backends/arm:tosa_mapping", |
| "//executorch/backends/arm:tosa_specification", |
| ], |
| ) |
| |
| python_library( |
| name = "ops", |
| srcs = glob(["op_*.py"]), |
| typing = True, |
| deps = [ |
| "fbsource//third-party/serialization_lib/python/tosa:tosa", |
| ":node_visitor", |
| "//executorch/backends/arm:tosa_mapping", |
| "//executorch/backends/arm:tosa_quant_utils", |
| "//executorch/backends/arm:tosa_utils", |
| "//executorch/exir:lib", |
| ], |
| ) |
| |
| python_library( |
| name = "lib", |
| srcs = ["__init__.py"], |
| typing = True, |
| deps = [ |
| ":node_visitor", |
| ":ops", |
| ], |
| ) |