1load("@fbcode_macros//build_defs:python_library.bzl", "python_library") 2 3oncall("executorch") 4 5python_library( 6 name = "lib", 7 srcs = [ 8 "__init__.py", 9 ], 10 deps = [ 11 ":emit", 12 ], 13) 14 15python_library( 16 name = "emit", 17 srcs = [ 18 "_emit_program.py", 19 "_emitter.py", 20 ], 21 deps = [ 22 "fbsource//third-party/pypi/typing-extensions:typing-extensions", 23 "//caffe2:torch", 24 "//executorch/exir:delegate", 25 "//executorch/exir:error", 26 "//executorch/exir:memory", 27 "//executorch/exir:print_program", 28 "//executorch/exir:schema", 29 "//executorch/exir:tensor", 30 "//executorch/exir:types", 31 "//executorch/exir:version", 32 "//executorch/exir/dialects/backend:lib", 33 "//executorch/exir/dialects/edge:lib", 34 "//executorch/exir/operator:convert", 35 "//executorch/exir/passes:prim_ops_py_registry", 36 "//executorch/extension/pytree:pylib", 37 ], 38) 39