File tensorflow-2.6.0-removed-external-toolchains.patch of Package tensorflow2
--- a/tensorflow-2.6.0/tensorflow/workspace0.bzl
+++ b/tensorflow-2.6.0/tensorflow/workspace0.bzl
@@ -5,7 +5,6 @@ load("@bazel_tools//tools/build_defs/rep
load("@bazel_toolchains//repositories:repositories.bzl", bazel_toolchains_repositories = "repositories")
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
-load("@local_config_android//:android.bzl", "android_workspace")
load("@rules_cc//cc:repositories.bzl", "rules_cc_toolchains")
def _tf_bind():
@@ -60,24 +59,6 @@ def workspace():
)
http_archive(
- name = "mobile_ssd",
- build_file = "//:models.BUILD",
- sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
- urls = [
- "https://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
- ],
- )
-
- http_archive(
- name = "mobile_multibox",
- build_file = "//:models.BUILD",
- sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
- urls = [
- "https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
- ],
- )
-
- http_archive(
name = "stylize",
build_file = "//:models.BUILD",
sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
@@ -111,7 +92,6 @@ def workspace():
# `git_repository` rules above, the following call will skip redefining them.
swift_rules_dependencies()
- android_workspace()
# If a target is bound twice, the later one wins, so we have to do tf bindings
# at the end of the WORKSPACE file.
--- a/tensorflow-2.6.0/tensorflow/workspace1.bzl
+++ b/tensorflow-2.6.0/tensorflow/workspace1.bzl
@@ -1,6 +1,5 @@
"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
-load("//third_party/android:android_configure.bzl", "android_configure")
load("//third_party/toolchains/preconfig/generate:archives.bzl", "bazel_toolchains_archive")
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
@@ -13,7 +12,6 @@ def workspace():
closure_repositories()
bazel_toolchains_archive()
- android_configure(name = "local_config_android")
grpc_deps()