Skip to content

Commit

Permalink
Minimize number of Copybara transforms that operate on `tensorflow/th…
Browse files Browse the repository at this point in the history
…ird_party`

PiperOrigin-RevId: 621679504
  • Loading branch information
ddunl authored and copybara-github committed Apr 4, 2024
1 parent baf7544 commit 55cdde9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions third_party/compute_library/build_defs.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def if_enable_acl(if_true, if_false = []):
return select({
"@xla//third_party/compute_library:build_with_acl": if_true,
"@tsl//third_party/compute_library:build_with_acl": if_true,
"//conditions:default": if_false,
})

Expand All @@ -15,6 +15,6 @@ def acl_deps():
inclusion in the deps attribute of rules.
"""
return select({
"@xla//third_party/compute_library:build_with_acl": ["@compute_library//:arm_compute"],
"@tsl//third_party/compute_library:build_with_acl": ["@compute_library//:arm_compute"],
"//conditions:default": [],
})
16 changes: 8 additions & 8 deletions third_party/llvm_openmp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load(
"@tsl//tsl:tsl.bzl",
"if_linux_x86_64",
"if_macos",
"if_windows",
)
load(
"@xla//third_party/llvm_openmp:cmake_vars.bzl",
"@tsl//third_party/llvm_openmp:cmake_vars.bzl",
"cmake_var_string",
"expand_cmake_vars",
)
load(
"@xla//third_party/llvm_openmp:openmp.bzl",
"@tsl//third_party/llvm_openmp:openmp.bzl",
"dict_add",
"libiomp5_cc_binary",
)
load(
"@tsl//tsl:tsl.bzl",
"if_linux_x86_64",
"if_macos",
"if_windows",
)

package(
default_visibility = [
Expand Down
2 changes: 1 addition & 1 deletion third_party/llvm_openmp/cmake_vars.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def expand_cmake_vars(name, src, dst, cmake_vars):
cmake_vars: a string containing the CMake variables, as generated by
cmake_var_string.
"""
expand_cmake_vars_tool = "@xla//third_party/llvm_openmp:expand_cmake_vars"
expand_cmake_vars_tool = "@tsl//third_party/llvm_openmp:expand_cmake_vars"
native.genrule(
name = name,
srcs = [src],
Expand Down
2 changes: 1 addition & 1 deletion third_party/nanobind/nanobind.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ cc_library(
),
deps = [
"@robin_map",
"@xla//third_party/python_runtime:headers",
"@tsl//third_party/python_runtime:headers",
],
)
2 changes: 1 addition & 1 deletion third_party/py/ml_dtypes/ml_dtypes.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pybind_extension(
":float8",
":int4",
"@eigen_archive//:eigen3",
"@xla//third_party/py/numpy:headers",
"@tsl//third_party/py/numpy:headers",
],
)

Expand Down
2 changes: 1 addition & 1 deletion third_party/py/ml_dtypes/ml_dtypes.tests.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ py_library(
"//:ml_dtypes",
"@absl_py//absl/testing:absltest",
"@absl_py//absl/testing:parameterized",
"@xla//third_party/py/numpy",
"@tsl//third_party/py/numpy",
],
)

Expand Down
4 changes: 2 additions & 2 deletions third_party/tsl/third_party/git/git_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def _git_conf_impl(repository_ctx):
)

tensorflow_root_path = str(repository_ctx.path(
Label("@tsl//:BUILD"),
Label("@org_tensorflow//:BUILD"),
))[:-len("BUILD")]
python_script_path = repository_ctx.path(
Label("@tsl//tensorflow/tools/git:gen_git_source.py"),
Label("@org_tensorflow//tensorflow/tools/git:gen_git_source.py"),
)
generated_files_path = repository_ctx.path("gen")

Expand Down
2 changes: 1 addition & 1 deletion third_party/tsl/third_party/llvm_openmp/openmp.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ after the TF 2.4 branch cut has passed.
"""

load(
"//tsl/platform:rules_cc.bzl",
"@tsl//tsl/platform:rules_cc.bzl",
"cc_binary",
)

Expand Down

0 comments on commit 55cdde9

Please sign in to comment.