blob: fbcb5d191309a725668994079d540399e2000f71 [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 = [
A. Unique TensorFlower265042c2019-06-13 11:02:06 -070010 "http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
11 "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
Justine Tunney02f276c2017-02-03 17:13:49 -080015load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
Gunhan Gulsoyb4ae8522018-09-26 02:31:31 -070016
Justine Tunney02f276c2017-02-03 17:13:49 -080017closure_repositories()
18
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080019load("//third_party/toolchains/preconfig/generate:archives.bzl",
20 "bazel_toolchains_archive")
21
22bazel_toolchains_archive()
23
24load(
25 "@bazel_toolchains//repositories:repositories.bzl",
26 bazel_toolchains_repositories = "repositories",
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080027)
28
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080029bazel_toolchains_repositories()
30
31load(
A. Unique TensorFlowerb0022ad2019-02-06 15:41:09 -080032 "@io_bazel_rules_docker//repositories:repositories.bzl",
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080033 container_repositories = "repositories",
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080034)
35
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080036container_repositories()
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080037
A. Unique TensorFlower62bc6402018-12-13 00:11:34 -080038load("//third_party/toolchains/preconfig/generate:workspace.bzl",
39 "remote_config_workspace")
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -080040
41remote_config_workspace()
42
A. Unique TensorFlower146c2da2018-12-17 15:59:15 -080043# Apple and Swift rules.
44http_archive(
45 name = "build_bazel_rules_apple",
A. Unique TensorFlower7df6c322019-05-10 11:08:28 -070046 sha256 = "23792cd999f97fc97284d1c44cb1324bfdd0bc54aa68ad513fa3705aca3b1f9e",
47 urls = ["https://github.com/bazelbuild/rules_apple/releases/download/0.15.0/rules_apple.0.15.0.tar.gz"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070048) # https://github.com/bazelbuild/rules_apple/releases
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080049http_archive(
50 name = "build_bazel_apple_support",
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070051 sha256 = "7356dbd44dea71570a929d1d4731e870622151a5f27164d966dda97305f33471",
52 urls = ["https://github.com/bazelbuild/apple_support/releases/download/0.6.0/apple_support.0.6.0.tar.gz"],
53) # https://github.com/bazelbuild/apple_support/releases
54http_archive(
55 name = "bazel_skylib",
56 sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
57 urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz"],
58) # https://github.com/bazelbuild/bazel-skylib/releases
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080059http_archive(
60 name = "build_bazel_rules_swift",
A. Unique TensorFlower7df6c322019-05-10 11:08:28 -070061 sha256 = "9efe9699e9765e6b4a5e063e4a08f6b163cccaf0443f775d935baf5c3cd6ed0e",
62 urls = ["https://github.com/bazelbuild/rules_swift/releases/download/0.9.0/rules_swift.0.9.0.tar.gz"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070063) # https://github.com/bazelbuild/rules_swift/releases
Gunhan Gulsoyf14586e2019-03-08 16:38:34 -080064http_archive(
65 name = "com_github_apple_swift_swift_protobuf",
66 type = "zip",
A. Unique TensorFlower87b5f632019-04-25 12:55:53 -070067 strip_prefix = "swift-protobuf-1.5.0/",
68 urls = ["https://github.com/apple/swift-protobuf/archive/1.5.0.zip"],
A. Unique TensorFlower1942fea2019-04-11 11:23:15 -070069) # https://github.com/apple/swift-protobuf/releases
70http_file(
71 name = "xctestrunner",
72 executable = 1,
73 urls = ["https://github.com/google/xctestrunner/releases/download/0.2.7/ios_test_runner.par"],
74) # https://github.com/google/xctestrunner/releases
75# Use `swift_rules_dependencies` to fetch the toolchains. With the
76# `git_repository` rules above, the following call will skip redefining them.
A. Unique TensorFlower146c2da2018-12-17 15:59:15 -080077load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
78swift_rules_dependencies()
79
Ilya Biryukov9e651e42018-03-22 05:33:42 -070080# We must check the bazel version before trying to parse any other BUILD
81# files, in case the parsing of those build files depends on the bazel
82# version we require here.
83load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
A. Unique TensorFlowerc223fbd2019-01-15 10:15:20 -080084check_bazel_version_at_least("0.19.0")
Ilya Biryukov9e651e42018-03-22 05:33:42 -070085
Martin Wickebc456e32017-03-23 12:31:16 -080086load("//tensorflow:workspace.bzl", "tf_workspace")
Shanqing Caiefd40e52017-01-08 20:31:30 -080087
Michael Case51053502018-06-05 17:47:19 -070088load("//third_party/android:android_configure.bzl", "android_configure")
89android_configure(name="local_config_android")
90load("@local_config_android//:android.bzl", "android_workspace")
91android_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080092
Kiril Gorovoy5b5976a2016-03-10 14:06:08 -080093# Please add all new TensorFlow dependencies in workspace.bzl.
Kiril Gorovoy77da1682016-02-24 18:02:16 -080094tf_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080095
A. Unique TensorFlower5b145772018-11-30 11:11:23 -080096http_archive(
Michael Cased90054e2018-02-07 14:36:00 -080097 name = "inception_v1",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -080098 build_file = "//:models.BUILD",
Michael Cased90054e2018-02-07 14:36:00 -080099 sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
Justine Tunney52b4d472017-05-17 16:13:33 -0700100 urls = [
Michael Cased90054e2018-02-07 14:36:00 -0800101 "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
102 "http://download.tensorflow.org/models/inception_v1.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -0700103 ],
Dan Smilkovf0e9bd32016-11-09 12:53:00 -0800104)
105
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800106http_archive(
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700107 name = "mobile_ssd",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800108 build_file = "//:models.BUILD",
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700109 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
110 urls = [
111 "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
112 "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
113 ],
114)
115
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800116http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700117 name = "mobile_multibox",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800118 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700119 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
120 urls = [
121 "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
122 "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
123 ],
Andrew Harpa30b9922016-11-28 15:41:52 -0800124)
125
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800126http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700127 name = "stylize",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800128 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700129 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
130 urls = [
131 "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
132 "http://download.tensorflow.org/models/stylize_v1.zip",
133 ],
Dan Smilkov38a4afc2016-08-31 11:56:58 -0800134)
Pete Warden7d01f892017-08-18 09:32:30 -0700135
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800136http_archive(
Pete Warden7d01f892017-08-18 09:32:30 -0700137 name = "speech_commands",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800138 build_file = "//:models.BUILD",
Pete Warden7d01f892017-08-18 09:32:30 -0700139 sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
140 urls = [
141 "http://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
142 "http://download.tensorflow.org/models/speech_commands_v0.01.zip",
143 ],
144)