diff options
author | avijit-nervana <avijit.chakraborty@intel.com> | 2018-08-28 16:12:57 -0700 |
---|---|---|
committer | avijit-nervana <avijit.chakraborty@intel.com> | 2018-08-28 16:12:57 -0700 |
commit | 757538bd14f24de3d7bf654a03c6543bb06a8e75 (patch) | |
tree | 4873885feca3a3e5787241477ef8d1333c494d1e /tensorflow/workspace.bzl | |
parent | 6b25c37daaa6a063b6b687252343db5453a84b8b (diff) | |
parent | 7f52de1a2b03568dc98ad51685b56661a5105da6 (diff) |
Merge branch 'master' into avijit/add-cpu-backend
Diffstat (limited to 'tensorflow/workspace.bzl')
-rwxr-xr-x[-rw-r--r--] | tensorflow/workspace.bzl | 66 |
1 files changed, 26 insertions, 40 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index a5dc95d609..9f9340254c 100644..100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -19,10 +19,10 @@ load( "//tensorflow/tools/def_file_filter:def_file_filter_configure.bzl", "def_file_filter_configure", ) +load("//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo") def initialize_third_party(): - # Fill in later - pass + flatbuffers() # Sanitize a dependency so that it works correctly from code that includes # TensorFlow as a submodule. @@ -106,11 +106,11 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): tf_http_archive( name = "com_google_absl", urls = [ - "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/fefc83638fb69395d259ed245699310610429064.tar.gz", - "https://github.com/abseil/abseil-cpp/archive/fefc83638fb69395d259ed245699310610429064.tar.gz", + "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/f0f15c2778b0e4959244dd25e63f445a455870f5.tar.gz", + "https://github.com/abseil/abseil-cpp/archive/f0f15c2778b0e4959244dd25e63f445a455870f5.tar.gz", ], - sha256 = "e5f94a6fcc42cb3f312987a1f8c1a62a915bab4df993cf6cde95f64f2d264259", - strip_prefix = "abseil-cpp-fefc83638fb69395d259ed245699310610429064", + sha256 = "4ee36dacb75846eaa209ce8060bb269a42b7b3903612ca6d9e86a692659fe8c1", + strip_prefix = "abseil-cpp-f0f15c2778b0e4959244dd25e63f445a455870f5", build_file = clean_dep("//third_party:com_google_absl.BUILD"), ) @@ -365,14 +365,18 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): }, ) + PROTOBUF_URLS = [ + "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz", + "https://github.com/google/protobuf/archive/v3.6.0.tar.gz", + ] + PROTOBUF_SHA256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4" + PROTOBUF_STRIP_PREFIX = "protobuf-3.6.0" + tf_http_archive( name = "protobuf_archive", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz", - "https://github.com/google/protobuf/archive/v3.6.0.tar.gz", - ], - sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4", - strip_prefix = "protobuf-3.6.0", + urls = PROTOBUF_URLS, + sha256 = PROTOBUF_SHA256, + strip_prefix = PROTOBUF_STRIP_PREFIX, ) # We need to import the protobuf library under the names com_google_protobuf @@ -380,22 +384,16 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): # Unfortunately there is no way to alias http_archives at the moment. tf_http_archive( name = "com_google_protobuf", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz", - "https://github.com/google/protobuf/archive/v3.6.0.tar.gz", - ], - sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4", - strip_prefix = "protobuf-3.6.0", + urls = PROTOBUF_URLS, + sha256 = PROTOBUF_SHA256, + strip_prefix = PROTOBUF_STRIP_PREFIX, ) tf_http_archive( name = "com_google_protobuf_cc", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz", - "https://github.com/google/protobuf/archive/v3.6.0.tar.gz", - ], - sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4", - strip_prefix = "protobuf-3.6.0", + urls = PROTOBUF_URLS, + sha256 = PROTOBUF_SHA256, + strip_prefix = PROTOBUF_STRIP_PREFIX, ) tf_http_archive( @@ -493,11 +491,11 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): tf_http_archive( name = "llvm", urls = [ - "https://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/6203c9bd082a877a20c218033636712135a3c2db.tar.gz", - "https://github.com/llvm-mirror/llvm/archive/6203c9bd082a877a20c218033636712135a3c2db.tar.gz", + "https://mirror.bazel.build/github.com/llvm-mirror/llvm/archive/deac5c28e00179be248aaf03abd329a848e8fac8.tar.gz", + "https://github.com/llvm-mirror/llvm/archive/deac5c28e00179be248aaf03abd329a848e8fac8.tar.gz", ], - sha256 = "83a80f9fb2a5949ca77e526344cbd4581388c3ec7fea5c59e488d46fd38e06d9", - strip_prefix = "llvm-6203c9bd082a877a20c218033636712135a3c2db", + sha256 = "bb55a553facff0408574a7bbd0d93c7371dbf527c7020fc6f4b9adeb0d83f780", + strip_prefix = "llvm-deac5c28e00179be248aaf03abd329a848e8fac8", build_file = clean_dep("//third_party/llvm:llvm.autogenerated.BUILD"), ) @@ -740,18 +738,6 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): build_file = clean_dep("//third_party:arm_neon_2_x86_sse.BUILD"), ) - tf_http_archive( - name = "flatbuffers", - strip_prefix = "flatbuffers-1.9.0", - sha256 = "5ca5491e4260cacae30f1a5786d109230db3f3a6e5a0eb45d0d0608293d247e3", - urls = [ - "https://mirror.bazel.build/github.com/google/flatbuffers/archive/v1.9.0.tar.gz", - "https://github.com/google/flatbuffers/archive/v1.9.0.tar.gz", - ], - build_file = clean_dep("//third_party/flatbuffers:flatbuffers.BUILD"), - system_build_file = clean_dep("//third_party/systemlibs:flatbuffers.BUILD"), - ) - native.new_http_archive( name = "double_conversion", urls = [ |