blob: 2277e83a3f67b62cf4ee1311767ee06c0549c697 [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",
Yifei Feng22f3a972018-04-23 21:19:14 -07007 sha256 = "a38539c5b5c358548e75b44141b4ab637bba7c4dc02b46b1f62a96d6433f56ae",
8 strip_prefix = "rules_closure-dbb96841cc0a5fb2664c37822803b06dab20c7d1",
Justine Tunney02f276c2017-02-03 17:13:49 -08009 urls = [
Yifei Feng22f3a972018-04-23 21:19:14 -070010 "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz",
11 "https://github.com/bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz", # 2018-04-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(
32 "@io_bazel_rules_docker//container:container.bzl",
33 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",
46 sha256 = "4fe4ee824200b48821730f89ff260984332dc3551db587c24691235d1d96a8a7",
47 strip_prefix = "rules_apple-0.10.0",
48 urls = ["https://github.com/bazelbuild/rules_apple/archive/0.10.0.tar.gz"],
49)
50http_archive(
51 name = "build_bazel_rules_swift",
52 sha256 = "6544ff5615febec0342de1127144d2f3e43ea80fb7f9b1ade65e6a184e39e618",
53 strip_prefix = "rules_swift-0.5.0",
54 urls = ["https://github.com/bazelbuild/rules_swift/archive/0.5.0.tar.gz"],
55)
56http_archive(
57 name = "bazel_skylib",
58 sha256 = "eb5c57e4c12e68c0c20bc774bfbc60a568e800d025557bc4ea022c6479acc867",
59 strip_prefix = "bazel-skylib-0.6.0",
60 urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.6.0.tar.gz"],
61)
62http_file(
63 name = "xctestrunner",
64 executable = 1,
65 urls = ["https://github.com/google/xctestrunner/releases/download/0.2.5/ios_test_runner.par"],
66)
67load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
68apple_rules_dependencies(ignore_version_differences = True)
69load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
70swift_rules_dependencies()
71
Ilya Biryukov9e651e42018-03-22 05:33:42 -070072# We must check the bazel version before trying to parse any other BUILD
73# files, in case the parsing of those build files depends on the bazel
74# version we require here.
75load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
Jason Zamanb41761c2018-10-14 11:28:53 +080076check_bazel_version_at_least("0.18.0")
Ilya Biryukov9e651e42018-03-22 05:33:42 -070077
Martin Wickebc456e32017-03-23 12:31:16 -080078load("//tensorflow:workspace.bzl", "tf_workspace")
Shanqing Caiefd40e52017-01-08 20:31:30 -080079
Michael Case51053502018-06-05 17:47:19 -070080load("//third_party/android:android_configure.bzl", "android_configure")
81android_configure(name="local_config_android")
82load("@local_config_android//:android.bzl", "android_workspace")
83android_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080084
Kiril Gorovoy5b5976a2016-03-10 14:06:08 -080085# Please add all new TensorFlow dependencies in workspace.bzl.
Kiril Gorovoy77da1682016-02-24 18:02:16 -080086tf_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080087
A. Unique TensorFlower5b145772018-11-30 11:11:23 -080088http_archive(
Michael Cased90054e2018-02-07 14:36:00 -080089 name = "inception_v1",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -080090 build_file = "//:models.BUILD",
Michael Cased90054e2018-02-07 14:36:00 -080091 sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
Justine Tunney52b4d472017-05-17 16:13:33 -070092 urls = [
Michael Cased90054e2018-02-07 14:36:00 -080093 "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
94 "http://download.tensorflow.org/models/inception_v1.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -070095 ],
Dan Smilkovf0e9bd32016-11-09 12:53:00 -080096)
97
A. Unique TensorFlower5b145772018-11-30 11:11:23 -080098http_archive(
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -070099 name = "mobile_ssd",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800100 build_file = "//:models.BUILD",
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -0700101 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
102 urls = [
103 "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
104 "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
105 ],
106)
107
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800108http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700109 name = "mobile_multibox",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800110 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700111 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
112 urls = [
113 "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
114 "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
115 ],
Andrew Harpa30b9922016-11-28 15:41:52 -0800116)
117
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800118http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -0700119 name = "stylize",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800120 build_file = "//:models.BUILD",
Justine Tunney52b4d472017-05-17 16:13:33 -0700121 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
122 urls = [
123 "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
124 "http://download.tensorflow.org/models/stylize_v1.zip",
125 ],
Dan Smilkov38a4afc2016-08-31 11:56:58 -0800126)
Pete Warden7d01f892017-08-18 09:32:30 -0700127
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800128http_archive(
Pete Warden7d01f892017-08-18 09:32:30 -0700129 name = "speech_commands",
A. Unique TensorFlower5b145772018-11-30 11:11:23 -0800130 build_file = "//:models.BUILD",
Pete Warden7d01f892017-08-18 09:32:30 -0700131 sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
132 urls = [
133 "http://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
134 "http://download.tensorflow.org/models/speech_commands_v0.01.zip",
135 ],
136)
A. Unique TensorFlower54cc77e2018-11-12 09:31:53 -0800137