Skip to content

Commit 8739d28

Browse files
authored
Remove duplicate fuse_batch_norm_with_linear target (#24213)
`backends/transforms/targets.bzl` defines the `fuse_batch_norm_with_linear` `python_library` twice (lines 138 and 152). The first copy comes from #24192. The second came in with the squash of #24193, whose branch picked up the block again when it was merged with `main`. Buck refuses to register the same target twice, so any command that loads `//backends/transforms/...` fails: ``` error: Attempted to register target root//backends/transforms:fuse_batch_norm_with_linear twice ``` This breaks `unittest-buck` on `main` and on open PRs. This change deletes the second, identical definition. No other targets in the file are duplicated. ### Test plan - Checked that `targets.bzl` now defines each target name once. - CI: `unittest-buck` should get past the `buck2 query` step.
1 parent e683360 commit 8739d28

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

‎backends/transforms/targets.bzl‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,6 @@ def define_common_targets():
148148
],
149149
)
150150

151-
runtime.python_library(
152-
name = "fuse_batch_norm_with_linear",
153-
srcs = ["fuse_batch_norm_with_linear.py"],
154-
visibility = [
155-
"//executorch/backends/...",
156-
],
157-
deps = [
158-
":utils",
159-
"//caffe2:torch",
160-
"//executorch/exir:pass_base",
161-
"//executorch/exir/dialects:lib",
162-
],
163-
)
164-
165151
runtime.python_library(
166152
name = "fuse_conv_with_clamp",
167153
srcs = ["fuse_conv_with_clamp.py"],

0 commit comments

Comments
 (0)