@@ -20,7 +20,7 @@ register_toolchains(
2020)
2121
2222# hack: tf depends on this specific toolchain target name to be used
23- # as crosstool for one its config settings when building for arm
23+ # as crosstool for one of its config_settings when building for arm
2424load ("//tools/cpp:cc_repo_config.bzl" , "cc_repo_config" )
2525
2626cc_repo_config (name = "local_config_arm_compiler" )
@@ -42,9 +42,9 @@ http_archive(
4242# https://github.com/bazelbuild/rules_docker
4343http_archive (
4444 name = "io_bazel_rules_docker" ,
45- sha256 = "df13123c44b4a4ff2c2f337b906763879d94871d16411bf82dcfeba892b58607 " ,
46- strip_prefix = "rules_docker-0.13.0 " ,
47- urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.13.0 /rules_docker-v0.13.0 .tar.gz" ],
45+ sha256 = "dc97fccceacd4c6be14e800b2a00693d5e8d07f69ee187babfd04a80a9f8e250 " ,
46+ strip_prefix = "rules_docker-0.14.1 " ,
47+ urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.14.1 /rules_docker-v0.14.1 .tar.gz" ],
4848)
4949
5050load ("@io_bazel_rules_docker//repositories:repositories.bzl" , container_repos = "repositories" )
@@ -57,22 +57,25 @@ container_deps()
5757
5858# tensorflow/tensorflow and deps
5959
60+ # tensorflow 2.1.0
6061# https://github.com/tensorflow/tensorflow
6162http_archive (
6263 name = "org_tensorflow" ,
6364 patches = [
65+ # use canonical cpu value
6466 "//third_party/tensorflow:BUILD.patch" ,
67+ # arm (32-bit) datatype sizes
6568 "//third_party/tensorflow:curl.BUILD.patch" ,
6669 "//third_party/tensorflow:hwloc.BUILD.bazel.patch" ,
6770 ],
68- sha256 = "b38de3408a4190246f2814dd7388cec72807b736fbcef5087e3b86a3f179bb0f " ,
69- strip_prefix = "tensorflow-64c3d382cadf7bbe8e7e99884bede8284ff67f56 " ,
71+ sha256 = "1f4b09e6bff7f847bb1034699076055e50e87534d76008af8295ed71195b2b36 " ,
72+ strip_prefix = "tensorflow-e5bf8de410005de06a7ff5393fafdf832ef1d4ad " ,
7073 urls = [
71- "https://github.com/tensorflow/tensorflow/archive/64c3d382cadf7bbe8e7e99884bede8284ff67f56 .tar.gz" ,
74+ "https://github.com/tensorflow/tensorflow/archive/e5bf8de410005de06a7ff5393fafdf832ef1d4ad .tar.gz" ,
7275 ],
7376)
7477
75- # see tensorflow/serving/WORKSPACE
78+ # see tensorflow/serving/WORKSPACE and tensorflow/tensorflow/WORKSPACE
7679http_archive (
7780 name = "io_bazel_rules_closure" ,
7881 sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9" ,
@@ -82,18 +85,25 @@ http_archive(
8285 ],
8386)
8487
85- # requires c++ includes for non-c++ compile action, so this patch
88+ # see tensorflow/serving/WORKSPACE and tensorflow/tensorflow/WORKSPACE
89+ http_archive (
90+ name = "bazel_skylib" ,
91+ sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0" ,
92+ urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel-skylib.0.9.0.tar.gz" ],
93+ )
94+
95+ # patch: requires c++ includes for non-c++ compile action, so this patch
8696# disables default libc++ includes as the toolchain sets includes manually.
8797http_archive (
8898 name = "nsync" ,
8999 patches = [
90100 "//third_party/tensorflow:nsync.BUILD.patch" ,
91101 ],
92- sha256 = "704be7f58afa47b99476bbac7aafd1a9db4357cef519db361716f13538547ffd " ,
93- strip_prefix = "nsync-1.20.2 " ,
102+ sha256 = "caf32e6b3d478b78cff6c2ba009c3400f8251f646804bcb65465666a9cea93c4 " ,
103+ strip_prefix = "nsync-1.22.0 " ,
94104 urls = [
95- "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/nsync/archive/1.20.2 .tar.gz" ,
96- "https://github.com/google/nsync/archive/1.20.2 .tar.gz" ,
105+ "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/nsync/archive/1.22.0 .tar.gz" ,
106+ "https://github.com/google/nsync/archive/1.22.0 .tar.gz" ,
97107 ],
98108)
99109
@@ -113,14 +123,10 @@ http_archive(
113123# https://github.com/tensorflow/serving
114124http_archive (
115125 name = "tf_serving" ,
116- patches = [
117- "//third_party/serving:apis.BUILD.patch" ,
118- "//third_party/serving:oss.BUILD.patch" ,
119- ],
120- sha256 = "52e2dfed08c185d0fb9da9454063dac053f0889118b38e818b74631ea1b06ebe" ,
121- strip_prefix = "serving-2.0.0" ,
126+ sha256 = "19338a59af96f0056088010fe04416ca09b0e8a9424ef742c392aa93c3b6b4de" ,
127+ strip_prefix = "serving-2.1.0" ,
122128 urls = [
123- "https://github.com/tensorflow/serving/archive/2.0 .0.tar.gz" ,
129+ "https://github.com/tensorflow/serving/archive/2.1 .0.tar.gz" ,
124130 ],
125131)
126132
0 commit comments