1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") 2 3oncall("executorch") 4 5runtime.python_library( 6 name = "xnnpack_partitioner", 7 srcs = [ 8 "xnnpack_partitioner.py", 9 ], 10 visibility = [ 11 "//executorch/...", 12 "@EXECUTORCH_CLIENTS", 13 ], 14 deps = [ 15 ":configs", 16 ":partitioner_graphs", 17 "//executorch/backends/xnnpack:xnnpack_preprocess", 18 "//executorch/backends/xnnpack/partition/config:xnnpack_partitioner_configs", 19 "//executorch/exir:delegate", 20 "//executorch/exir:lib", 21 "//executorch/exir/backend:partitioner", 22 "//executorch/exir/backend:utils", 23 "//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib", 24 ], 25) 26 27runtime.python_library( 28 name = "configs", 29 srcs = [ 30 "configs.py", 31 ], 32 visibility = [ 33 "//executorch/...", 34 "@EXECUTORCH_CLIENTS", 35 ], 36 deps = [ 37 "//executorch/exir:lib", 38 ], 39) 40 41runtime.python_library( 42 name = "partitioner_graphs", 43 srcs = glob([ 44 "graphs/*.py", 45 ]), 46 visibility = [ 47 "//executorch/...", 48 "@EXECUTORCH_CLIENTS", 49 ], 50 deps = [ 51 "//executorch/exir:lib", 52 ], 53) 54