From c6bc155d7f9d25cc095590f71b43b9bdfc0df9a0 Mon Sep 17 00:00:00 2001 From: Jacob Stevens Date: Tue, 27 Oct 2026 13:27:16 -0700 Subject: [PATCH] Remove duplicate fuse_batch_norm_with_linear target `backends/transforms/targets.bzl` defines the `fuse_batch_norm_with_linear` `python_library` twice: once from #24192 and again from the squash of #24193, which picked up the block a second time when the PR branch was merged with `main`. Buck refuses to register the same target twice, so loading `//backends/transforms/...` fails, which breaks `unittest-buck`. Delete the second, identical definition. --- backends/transforms/targets.bzl | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backends/transforms/targets.bzl b/backends/transforms/targets.bzl index 22fced32b8a..8314bbb5695 100644 --- a/backends/transforms/targets.bzl +++ b/backends/transforms/targets.bzl @@ -148,20 +148,6 @@ def define_common_targets(): ], ) - runtime.python_library( - name = "fuse_batch_norm_with_linear", - srcs = ["fuse_batch_norm_with_linear.py"], - visibility = [ - "//executorch/backends/...", - ], - deps = [ - ":utils", - "//caffe2:torch", - "//executorch/exir:pass_base", - "//executorch/exir/dialects:lib", - ], - ) - runtime.python_library( name = "fuse_conv_with_clamp", srcs = ["fuse_conv_with_clamp.py"],