Skip to content

Commit 51e6f47

Browse files
jakeharmon8tensorflower-gardener
authored andcommitted
Remove dependency on tensorflow.bzl
This is required to prevent a circular dependency in tensorflow#60161 PiperOrigin-RevId: 563836979
1 parent 2d419f4 commit 51e6f47

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

tensorflow/core/platform/build_config.default.bzl

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ load(
1313
"if_libtpu",
1414
_tsl_clean_dep = "clean_dep",
1515
)
16-
load(
17-
"//tensorflow:tensorflow.bzl",
18-
"clean_dep",
19-
)
2016
load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
2117
load("@local_config_rocm//rocm:build_defs.bzl", "if_rocm")
2218
load(
@@ -32,34 +28,34 @@ def tf_dtensor_tpu_dependencies():
3228

3329
def tf_additional_binary_deps():
3430
return [
35-
clean_dep("@nsync//:nsync_cpp"),
31+
str(Label("@nsync//:nsync_cpp")),
3632
# TODO(allenl): Split these out into their own shared objects. They are
3733
# here because they are shared between contrib/ op shared objects and
3834
# core.
39-
clean_dep("//tensorflow/core/kernels:lookup_util"),
40-
clean_dep("//tensorflow/core/util/tensor_bundle"),
35+
str(Label("//tensorflow/core/kernels:lookup_util")),
36+
str(Label("//tensorflow/core/util/tensor_bundle")),
4137
] + if_cuda(
4238
[
43-
clean_dep("@local_xla//xla/stream_executor:cuda_platform"),
39+
str(Label("@local_xla//xla/stream_executor:cuda_platform")),
4440
],
4541
) + if_rocm(
4642
[
47-
clean_dep("@local_xla//xla/stream_executor:rocm_platform"),
48-
clean_dep("@local_xla//xla/stream_executor/rocm:rocm_rpath"),
43+
str(Label("@local_xla//xla/stream_executor:rocm_platform")),
44+
str(Label("@local_xla//xla/stream_executor/rocm:rocm_rpath")),
4945
],
5046
) + if_mkl_ml(
5147
[
52-
clean_dep("//third_party/mkl:intel_binary_blob"),
48+
str(Label("//third_party/mkl:intel_binary_blob")),
5349
],
5450
)
5551

5652
def tf_protos_all():
5753
return if_static(
5854
extra_deps = [
59-
clean_dep("//tensorflow/core/protobuf:conv_autotuning_proto_cc_impl"),
60-
clean_dep("//tensorflow/core:protos_all_cc_impl"),
55+
str(Label("//tensorflow/core/protobuf:conv_autotuning_proto_cc_impl")),
56+
str(Label("//tensorflow/core:protos_all_cc_impl")),
6157
_xla_clean_dep("@local_xla//xla:autotuning_proto_cc_impl"),
6258
_tsl_clean_dep("@local_tsl//tsl/protobuf:protos_all_cc_impl"),
6359
],
64-
otherwise = [clean_dep("//tensorflow/core:protos_all_cc")],
60+
otherwise = [str(Label("//tensorflow/core:protos_all_cc"))],
6561
)

0 commit comments

Comments
 (0)