diff --git a/third_party/cpuinfo/workspace.bzl b/third_party/cpuinfo/workspace.bzl index 69b51913799..99c5aa041d3 100644 --- a/third_party/cpuinfo/workspace.bzl +++ b/third_party/cpuinfo/workspace.bzl @@ -2,11 +2,6 @@ load("//third_party:repo.bzl", "third_party_http_archive") -# Sanitize a dependency so that it works correctly from code that includes -# TensorFlow as a submodule. -def clean_dep(dep): - return str(Label(dep)) - def repo(): third_party_http_archive( name = "cpuinfo", @@ -17,5 +12,5 @@ def repo(): "https://github.com/pytorch/cpuinfo/archive/6cecd15784fcb6c5c0aa7311c6248879ce2cb8b2.zip", ], build_file = "//third_party/cpuinfo:BUILD.bazel", - patch_file = clean_dep("//third_party/cpuinfo:cpuinfo.patch"), + patch_file = "//third_party/cpuinfo:cpuinfo.patch", ) diff --git a/third_party/icu/workspace.bzl b/third_party/icu/workspace.bzl index a2131a5005e..97cd970f35e 100644 --- a/third_party/icu/workspace.bzl +++ b/third_party/icu/workspace.bzl @@ -2,11 +2,6 @@ load("//third_party:repo.bzl", "third_party_http_archive") -# Sanitize a dependency so that it works correctly from code that includes -# TensorFlow as a submodule. -def clean_dep(dep): - return str(Label(dep)) - def repo(): third_party_http_archive( name = "icu", @@ -18,5 +13,5 @@ def repo(): ], build_file = "//third_party/icu:BUILD.bazel", system_build_file = "//third_party/icu:BUILD.system", - patch_file = clean_dep("//third_party/icu:udata.patch"), + patch_file = "//third_party/icu:udata.patch", )