1load("@fbcode_macros//build_defs:python_library.bzl", "python_library") 2 3oncall("executorch") 4 5python_library( 6 name = "xnnpack_passes", 7 srcs = [ 8 "__init__.py", 9 "channels_last_tagged_reshape_pass.py", 10 "conv1d_unsqueeze_pass.py", 11 "convert_to_linear.py", 12 "convert_to_sdpa.py", 13 "convert_to_upsample_bilinear2d.py", 14 "fuse_activation_pass.py", 15 "fuse_batch_norm_with_conv.py", 16 "prelu_reshape_pass.py", 17 "remove_getitem_op.py", 18 "tag_implicit_q_dq_pass.py", 19 "xnnpack_pass.py", 20 ], 21 deps = [ 22 "//caffe2:torch", 23 "//executorch/backends/transforms:addmm_mm_to_linear", 24 "//executorch/backends/transforms:lib", 25 "//executorch/backends/xnnpack/partition:configs", 26 "//executorch/backends/xnnpack/partition:partitioner_graphs", 27 "//executorch/backends/xnnpack/serialization:xnnpack_schema", 28 "//executorch/backends/xnnpack/utils:xnnpack_utils", 29 "//executorch/exir:lib", 30 "//executorch/exir:pass_base", 31 "//executorch/exir/dialects:lib", 32 "//executorch/exir/passes:const_prop_pass", 33 "//executorch/exir/passes:memory_format_ops_pass", 34 "//executorch/exir/program:program", 35 ], 36) 37