1
1
workspace (name = "org_keras" )
2
2
3
3
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
4
+ load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
4
5
5
6
# Toolchains for ML projects hermetic builds.
6
7
# Details: https://github.com/google-ml-infra/rules_ml_toolchain
@@ -26,11 +27,11 @@ register_toolchains("@rules_ml_toolchain//cc:linux_x86_64_linux_x86_64_cuda")
26
27
27
28
http_archive (
28
29
name = "xla" ,
29
- sha256 = "5b20a5fd981a23a5dea092f13f9279b5c2e8005b509ac141fb65f22a42ad35a9 " ,
30
- strip_prefix = "xla-32b7537aee5a1e9145a6e11fc258347c41d6f5f8 " ,
30
+ sha256 = "96ffcfd4a52bcb75d34b426f5a26d4e83a4dcf8f05bccf98e60d415a02ac6bca " ,
31
+ strip_prefix = "xla-5a2c4befe808fbc894b55747d3c8955852a68ae6 " ,
31
32
urls = [
32
- "https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/xla/archive/32b7537aee5a1e9145a6e11fc258347c41d6f5f8 .tar.gz" ,
33
- "https://github.com/openxla/xla/archive/32b7537aee5a1e9145a6e11fc258347c41d6f5f8 .tar.gz" ,
33
+ "https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/xla/archive/5a2c4befe808fbc894b55747d3c8955852a68ae6 .tar.gz" ,
34
+ "https://github.com/openxla/xla/archive/5a2c4befe808fbc894b55747d3c8955852a68ae6 .tar.gz" ,
34
35
],
35
36
)
36
37
@@ -124,14 +125,12 @@ cuda_configure(name = "local_config_cuda")
124
125
# Needed by protobuf
125
126
http_archive (
126
127
name = "bazel_skylib" ,
128
+ sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f" ,
127
129
urls = [
128
- "https://mirror.bazel.build /github.com/bazelbuild/bazel-skylib/releases/download/1.3.0 /bazel-skylib-1.3.0 .tar.gz" ,
129
- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0 /bazel-skylib-1.3.0 .tar.gz" ,
130
+ "https://storage.googleapis.com/ mirror.tensorflow.org /github.com/bazelbuild/bazel-skylib/releases/download/1.7.1 /bazel-skylib-1.7.1 .tar.gz" ,
131
+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1 /bazel-skylib-1.7.1 .tar.gz" ,
130
132
],
131
- sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506" ,
132
133
)
133
- load ("@bazel_skylib//:workspace.bzl" , "bazel_skylib_workspace" )
134
- bazel_skylib_workspace ()
135
134
136
135
# Needed by protobuf
137
136
http_archive (
@@ -147,24 +146,45 @@ bind(
147
146
actual = "@six_archive//:six" ,
148
147
)
149
148
150
- tf_http_archive (
149
+ # Needed by protobuf
150
+ load ("@xla//third_party/absl:workspace.bzl" , absl = "repo" )
151
+
152
+ absl ()
153
+
154
+ # Needed by protobuf
155
+ http_archive (
156
+ name = "rules_java" ,
157
+ sha256 = "5449ed36d61269579dd9f4b0e532cd131840f285b389b3795ae8b4d717387dd8" ,
158
+ urls = [
159
+ "https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/rules_java/releases/download/8.7.0/rules_java-8.7.0.tar.gz" ,
160
+ "https://github.com/bazelbuild/rules_java/releases/download/8.7.0/rules_java-8.7.0.tar.gz" ,
161
+ ],
162
+ )
163
+
164
+ load ("@rules_java//java:rules_java_deps.bzl" , "rules_java_dependencies" )
165
+
166
+ rules_java_dependencies ()
167
+
168
+ maybe (
169
+ tf_http_archive ,
151
170
name = "com_google_protobuf" ,
152
171
patch_file = ["@xla//third_party/protobuf:protobuf.patch" ],
153
- sha256 = "f645e6e42745ce922ca5388b1883ca583bafe4366cc74cf35c3c9299005136e2" ,
154
- strip_prefix = "protobuf-5.28.3" ,
155
- urls = tf_mirror_urls ("https://github.com/protocolbuffers/protobuf/archive/refs/tags/v5.28.3.zip" ),
172
+ sha256 = "6e09bbc950ba60c3a7b30280210cd285af8d7d8ed5e0a6ed101c72aff22e8d88" ,
173
+ strip_prefix = "protobuf-6.31.1" ,
174
+ urls = tf_mirror_urls ("https://github.com/protocolbuffers/protobuf/archive/refs/tags/v6.31.1.zip" ),
175
+ repo_mapping = {
176
+ "@abseil-cpp" : "@com_google_absl" ,
177
+ "@protobuf_pip_deps" : "@pypi" ,
178
+ },
156
179
)
157
180
158
181
# ZLIB. Need by com_google_protobuf.
159
- http_archive (
182
+ tf_http_archive (
160
183
name = "zlib" ,
161
184
build_file = "@com_google_protobuf//:third_party/zlib.BUILD" ,
162
- sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30" ,
163
- strip_prefix = "zlib-1.2.13" ,
164
- urls = [
165
- "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.13.tar.gz" ,
166
- "https://zlib.net/zlib-1.2.13.tar.gz" ,
167
- ],
185
+ sha256 = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23" ,
186
+ strip_prefix = "zlib-1.3.1" ,
187
+ urls = tf_mirror_urls ("https://zlib.net/fossils/zlib-1.3.1.tar.gz" ),
168
188
)
169
189
170
190
0 commit comments