blob: 48536a5d1d05ade756174149d6af34be8e22ec95 [file] [log] [blame]
Vijay Vasudevan8cc567b2016-05-26 11:05:13 -08001workspace(name = "org_tensorflow")
2
A. Unique TensorFlower146c2da2018-12-17 15:59:15 -08003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
A. Unique TensorFlower5b145772018-11-30 11:11:23 -08004
Justine Tunney02f276c2017-02-03 17:13:49 -08005http_archive(
6 name = "io_bazel_rules_closure",
A. Unique TensorFlower265042c2019-06-13 11:02:06 -07007 sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
8 strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149",
Justine Tunney02f276c2017-02-03 17:13:49 -08009 urls = [
Frank Chen2b5ece22019-07-23 22:21:29 -070010 "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
A. Unique TensorFlower265042c2019-06-13 11:02:06 -070011 "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13
Justine Tunney02f276c2017-02-03 17:13:49 -080012 ],
13)
Gunhan Gulsoyb4ae8522018-09-26 02:31:31 -070014
A. Unique TensorFlowerdad41972019-06-24 07:21:59 -070015# Load tf_repositories() before loading dependencies for other repository so
16# that dependencies like com_google_protobuf won't be overridden.
17load("//tensorflow:workspace.bzl", "tf_repositories")
A. Unique TensorFlower508f76b2019-06-19 04:14:12 -070018# Please add all new TensorFlow dependencies in workspace.bzl.
A. Unique TensorFlowerdad41972019-06-24 07:21:59 -070019tf_repositories()
A. Unique TensorFlower508f76b2019-06-19 04:14:12 -070020
A. Unique TensorFlower98ecdee2019-10-05 01:15:18 -070021register_toolchains("@local_config_python//:py_toolchain")
22
Justine Tunney02f276c2017-02-03 17:13:49 -080023load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
Gunhan Gulsoyb4ae8522018-09-26 02:31:31 -070024
Justine Tunney02f276c2017-02-03 17:13:49 -080025closure_repositories()
26
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080027load("//third_party/toolchains/preconfig/generate:archives.bzl",
28 "bazel_toolchains_archive")
29
30bazel_toolchains_archive()
31
32load(
33 "@bazel_toolchains//repositories:repositories.bzl",
34 bazel_toolchains_repositories = "repositories",
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080035)
36
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080037bazel_toolchains_repositories()
38
39load(
A. Unique TensorFlowerb0022ad2019-02-06 15:41:09 -080040 "@io_bazel_rules_docker//repositories:repositories.bzl",
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080041 container_repositories = "repositories",
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080042)
43
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080044container_repositories()
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080045
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080046load("//third_party/toolchains/preconfig/generate:workspace.bzl",
47 "remote_config_workspace")
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080048
49remote_config_workspace()
50
A. Unique TensorFlower146c2da2018-12-17 15:59:15 -080051# Apple and Swift rules.
52http_archive(
53 name = "build_bazel_rules_apple",
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070054 sha256 = "a045a436b642c70fb0c10ca84ff0fd2dcbd59cc89100d597a61e8374afafb366",
55 urls = ["https://github.com/bazelbuild/rules_apple/releases/download/0.18.0/rules_apple.0.18.0.tar.gz"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070056) # https://github.com/bazelbuild/rules_apple/releases
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080057http_archive(
A. Unique TensorFlower15867c92019-07-24 16:27:53 -070058 name = "build_bazel_rules_swift",
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070059 sha256 = "18cd4df4e410b0439a4935f9ca035bd979993d42372ba79e7f2d4fafe9596ef0",
60 urls = ["https://github.com/bazelbuild/rules_swift/releases/download/0.12.1/rules_swift.0.12.1.tar.gz"],
A. Unique TensorFlower15867c92019-07-24 16:27:53 -070061) # https://github.com/bazelbuild/rules_swift/releases
62http_archive(
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080063 name = "build_bazel_apple_support",
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070064 sha256 = "122ebf7fe7d1c8e938af6aeaee0efe788a3a2449ece5a8d6a428cb18d6f88033",
65 urls = ["https://github.com/bazelbuild/apple_support/releases/download/0.7.1/apple_support.0.7.1.tar.gz"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070066) # https://github.com/bazelbuild/apple_support/releases
67http_archive(
68 name = "bazel_skylib",
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070069 sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0",
70 urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel-skylib.0.9.0.tar.gz"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070071) # https://github.com/bazelbuild/bazel-skylib/releases
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080072http_archive(
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080073 name = "com_github_apple_swift_swift_protobuf",
74 type = "zip",
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070075 strip_prefix = "swift-protobuf-1.6.0/",
76 urls = ["https://github.com/apple/swift-protobuf/archive/1.6.0.zip"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070077) # https://github.com/apple/swift-protobuf/releases
78http_file(
79 name = "xctestrunner",
80 executable = 1,
A. Unique TensorFlowerc0fc6ac2019-09-04 11:42:29 -070081 urls = ["https://github.com/google/xctestrunner/releases/download/0.2.9/ios_test_runner.par"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070082) # https://github.com/google/xctestrunner/releases
83# Use `swift_rules_dependencies` to fetch the toolchains. With the
84# `git_repository` rules above, the following call will skip redefining them.
A. Unique TensorFlower146c2da2018-12-17 15:59:15 -080085load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
86swift_rules_dependencies()
87
Ilya Biryukov9e651e42018-03-22 05:33:42 -070088# We must check the bazel version before trying to parse any other BUILD
89# files, in case the parsing of those build files depends on the bazel
90# version we require here.
91load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
Gunhan Gulsoyaaea5412019-11-29 22:08:00 -080092check_bazel_version_at_least("1.0.0")
Ilya Biryukov9e651e42018-03-22 05:33:42 -070093
Michael Case51053502018-06-05 17:47:19 -070094load("//third_party/android:android_configure.bzl", "android_configure")
95android_configure(name="local_config_android")
96load("@local_config_android//:android.bzl", "android_workspace")
97android_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080098
A. Unique TensorFlower508f76b2019-06-19 04:14:12 -070099# If a target is bound twice, the later one wins, so we have to do tf bindings
100# at the end of the WORKSPACE file.
101load("//tensorflow:workspace.bzl", "tf_bind")
102tf_bind()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -0800103
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800104http_archive(
Michael Cased90054e2018-02-07 14:36:00 -0800105 name = "inception_v1",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800106 build_file = "//:models.BUILD",
Michael Cased90054e2018-02-07 14:36:00 -0800107 sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
Justine Tunney52b4d472017-05-17 16:13:33 -0700108 urls = [
Frank Chen57e0d1a2019-07-24 18:43:43 -0700109 "https://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -0700110 ],
Dan Smilkovf0e9bd32016-11-09 12:53:00 -0800111)
112
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800113http_archive(
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700114 name = "mobile_ssd",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800115 build_file = "//:models.BUILD",
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700116 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
117 urls = [
Frank Chen57e0d1a2019-07-24 18:43:43 -0700118 "https://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700119 ],
120)
121
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800122http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700123 name = "mobile_multibox",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800124 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700125 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
126 urls = [
Frank Chen57e0d1a2019-07-24 18:43:43 -0700127 "https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -0700128 ],
Andrew Harpa30b9922016-11-28 15:41:52 -0800129)
130
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800131http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700132 name = "stylize",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800133 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700134 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
135 urls = [
Frank Chen57e0d1a2019-07-24 18:43:43 -0700136 "https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -0700137 ],
Dan Smilkov38a4afc2016-08-31 11:56:58 -0800138)
Pete Warden7d01f892017-08-18 09:32:30 -0700139
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800140http_archive(
Pete Warden7d01f892017-08-18 09:32:30 -0700141 name = "speech_commands",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800142 build_file = "//:models.BUILD",
Pete Warden7d01f892017-08-18 09:32:30 -0700143 sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
144 urls = [
Frank Chen57e0d1a2019-07-24 18:43:43 -0700145 "https://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
Pete Warden7d01f892017-08-18 09:32:30 -0700146 ],
147)