1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") 2load(":targets.bzl", "define_common_targets") 3 4oncall("executorch") 5 6define_common_targets() 7 8runtime.python_library( 9 name = "xnnpack_preprocess", 10 srcs = [ 11 "xnnpack_preprocess.py", 12 ], 13 visibility = [ 14 "//executorch/...", 15 "@EXECUTORCH_CLIENTS", 16 ], 17 deps = [ 18 "//executorch/backends/transforms:lib", 19 "//executorch/backends/xnnpack/_passes:xnnpack_passes", 20 "//executorch/backends/xnnpack/operators:operators", 21 "//executorch/backends/xnnpack/serialization:xnnpack_serializer", 22 "//executorch/exir:graph_module", 23 "//executorch/exir/backend:backend_details", 24 ], 25) 26 27runtime.python_library( 28 name = "xnnpack_delegate", 29 srcs = [ 30 "__init__.py", 31 ], 32 visibility = [ 33 "//executorch/...", 34 "@EXECUTORCH_CLIENTS", 35 ], 36 deps = [ 37 ":xnnpack_preprocess", 38 "//executorch/backends/xnnpack/partition:xnnpack_partitioner", 39 "//executorch/backends/xnnpack/utils:xnnpack_utils", 40 ], 41) 42