Vijay Vasudevan | 8cc567b | 2016-05-26 11:05:13 -0800 | [diff] [blame] | 1 | workspace(name = "org_tensorflow") |
| 2 | |
A. Unique TensorFlower | 146c2da | 2018-12-17 15:59:15 -0800 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 4 | |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 5 | http_archive( |
| 6 | name = "io_bazel_rules_closure", |
A. Unique TensorFlower | 265042c | 2019-06-13 11:02:06 -0700 | [diff] [blame] | 7 | sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", |
| 8 | strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149", |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 9 | urls = [ |
A. Unique TensorFlower | 265042c | 2019-06-13 11:02:06 -0700 | [diff] [blame] | 10 | "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 Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 12 | ], |
| 13 | ) |
Gunhan Gulsoy | b4ae852 | 2018-09-26 02:31:31 -0700 | [diff] [blame] | 14 | |
A. Unique TensorFlower | 508f76b | 2019-06-19 04:14:12 -0700 | [diff] [blame^] | 15 | # Load tf_workspace() before loading dependencies for other repository so that |
| 16 | # dependencies like com_google_protobuf won't be overridden. |
| 17 | load("//tensorflow:workspace.bzl", "tf_workspace") |
| 18 | # Please add all new TensorFlow dependencies in workspace.bzl. |
| 19 | tf_workspace() |
| 20 | |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 21 | load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") |
Gunhan Gulsoy | b4ae852 | 2018-09-26 02:31:31 -0700 | [diff] [blame] | 22 | |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 23 | closure_repositories() |
| 24 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 25 | load("//third_party/toolchains/preconfig/generate:archives.bzl", |
| 26 | "bazel_toolchains_archive") |
| 27 | |
| 28 | bazel_toolchains_archive() |
| 29 | |
| 30 | load( |
| 31 | "@bazel_toolchains//repositories:repositories.bzl", |
| 32 | bazel_toolchains_repositories = "repositories", |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 33 | ) |
| 34 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 35 | bazel_toolchains_repositories() |
| 36 | |
| 37 | load( |
A. Unique TensorFlower | b0022ad | 2019-02-06 15:41:09 -0800 | [diff] [blame] | 38 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 39 | container_repositories = "repositories", |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 40 | ) |
| 41 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 42 | container_repositories() |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 43 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 44 | load("//third_party/toolchains/preconfig/generate:workspace.bzl", |
| 45 | "remote_config_workspace") |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 46 | |
| 47 | remote_config_workspace() |
| 48 | |
A. Unique TensorFlower | 146c2da | 2018-12-17 15:59:15 -0800 | [diff] [blame] | 49 | # Apple and Swift rules. |
| 50 | http_archive( |
| 51 | name = "build_bazel_rules_apple", |
A. Unique TensorFlower | 7df6c32 | 2019-05-10 11:08:28 -0700 | [diff] [blame] | 52 | sha256 = "23792cd999f97fc97284d1c44cb1324bfdd0bc54aa68ad513fa3705aca3b1f9e", |
| 53 | urls = ["https://github.com/bazelbuild/rules_apple/releases/download/0.15.0/rules_apple.0.15.0.tar.gz"], |
A. Unique TensorFlower | 1942fea | 2019-04-11 11:23:15 -0700 | [diff] [blame] | 54 | ) # https://github.com/bazelbuild/rules_apple/releases |
Gunhan Gulsoy | f14586e | 2019-03-08 16:38:34 -0800 | [diff] [blame] | 55 | http_archive( |
| 56 | name = "build_bazel_apple_support", |
A. Unique TensorFlower | 1942fea | 2019-04-11 11:23:15 -0700 | [diff] [blame] | 57 | sha256 = "7356dbd44dea71570a929d1d4731e870622151a5f27164d966dda97305f33471", |
| 58 | urls = ["https://github.com/bazelbuild/apple_support/releases/download/0.6.0/apple_support.0.6.0.tar.gz"], |
| 59 | ) # https://github.com/bazelbuild/apple_support/releases |
| 60 | http_archive( |
| 61 | name = "bazel_skylib", |
| 62 | sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e", |
| 63 | urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz"], |
| 64 | ) # https://github.com/bazelbuild/bazel-skylib/releases |
Gunhan Gulsoy | f14586e | 2019-03-08 16:38:34 -0800 | [diff] [blame] | 65 | http_archive( |
| 66 | name = "build_bazel_rules_swift", |
A. Unique TensorFlower | 7df6c32 | 2019-05-10 11:08:28 -0700 | [diff] [blame] | 67 | sha256 = "9efe9699e9765e6b4a5e063e4a08f6b163cccaf0443f775d935baf5c3cd6ed0e", |
| 68 | urls = ["https://github.com/bazelbuild/rules_swift/releases/download/0.9.0/rules_swift.0.9.0.tar.gz"], |
A. Unique TensorFlower | 1942fea | 2019-04-11 11:23:15 -0700 | [diff] [blame] | 69 | ) # https://github.com/bazelbuild/rules_swift/releases |
Gunhan Gulsoy | f14586e | 2019-03-08 16:38:34 -0800 | [diff] [blame] | 70 | http_archive( |
| 71 | name = "com_github_apple_swift_swift_protobuf", |
| 72 | type = "zip", |
A. Unique TensorFlower | 87b5f63 | 2019-04-25 12:55:53 -0700 | [diff] [blame] | 73 | strip_prefix = "swift-protobuf-1.5.0/", |
| 74 | urls = ["https://github.com/apple/swift-protobuf/archive/1.5.0.zip"], |
A. Unique TensorFlower | 1942fea | 2019-04-11 11:23:15 -0700 | [diff] [blame] | 75 | ) # https://github.com/apple/swift-protobuf/releases |
| 76 | http_file( |
| 77 | name = "xctestrunner", |
| 78 | executable = 1, |
| 79 | urls = ["https://github.com/google/xctestrunner/releases/download/0.2.7/ios_test_runner.par"], |
| 80 | ) # https://github.com/google/xctestrunner/releases |
| 81 | # Use `swift_rules_dependencies` to fetch the toolchains. With the |
| 82 | # `git_repository` rules above, the following call will skip redefining them. |
A. Unique TensorFlower | 146c2da | 2018-12-17 15:59:15 -0800 | [diff] [blame] | 83 | load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies") |
| 84 | swift_rules_dependencies() |
| 85 | |
Ilya Biryukov | 9e651e4 | 2018-03-22 05:33:42 -0700 | [diff] [blame] | 86 | # We must check the bazel version before trying to parse any other BUILD |
| 87 | # files, in case the parsing of those build files depends on the bazel |
| 88 | # version we require here. |
| 89 | load("//tensorflow:version_check.bzl", "check_bazel_version_at_least") |
A. Unique TensorFlower | c223fbd | 2019-01-15 10:15:20 -0800 | [diff] [blame] | 90 | check_bazel_version_at_least("0.19.0") |
Ilya Biryukov | 9e651e4 | 2018-03-22 05:33:42 -0700 | [diff] [blame] | 91 | |
Michael Case | 5105350 | 2018-06-05 17:47:19 -0700 | [diff] [blame] | 92 | load("//third_party/android:android_configure.bzl", "android_configure") |
| 93 | android_configure(name="local_config_android") |
| 94 | load("@local_config_android//:android.bzl", "android_workspace") |
| 95 | android_workspace() |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 96 | |
A. Unique TensorFlower | 508f76b | 2019-06-19 04:14:12 -0700 | [diff] [blame^] | 97 | # If a target is bound twice, the later one wins, so we have to do tf bindings |
| 98 | # at the end of the WORKSPACE file. |
| 99 | load("//tensorflow:workspace.bzl", "tf_bind") |
| 100 | tf_bind() |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 101 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 102 | http_archive( |
Michael Case | d90054e | 2018-02-07 14:36:00 -0800 | [diff] [blame] | 103 | name = "inception_v1", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 104 | build_file = "//:models.BUILD", |
Michael Case | d90054e | 2018-02-07 14:36:00 -0800 | [diff] [blame] | 105 | sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 106 | urls = [ |
Michael Case | d90054e | 2018-02-07 14:36:00 -0800 | [diff] [blame] | 107 | "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip", |
| 108 | "http://download.tensorflow.org/models/inception_v1.zip", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 109 | ], |
Dan Smilkov | f0e9bd3 | 2016-11-09 12:53:00 -0800 | [diff] [blame] | 110 | ) |
| 111 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 112 | http_archive( |
A. Unique TensorFlower | 53aabd5 | 2017-08-09 18:18:26 -0700 | [diff] [blame] | 113 | name = "mobile_ssd", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 114 | build_file = "//:models.BUILD", |
A. Unique TensorFlower | 53aabd5 | 2017-08-09 18:18:26 -0700 | [diff] [blame] | 115 | sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8", |
| 116 | urls = [ |
| 117 | "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip", |
| 118 | "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip", |
| 119 | ], |
| 120 | ) |
| 121 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 122 | http_archive( |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 123 | name = "mobile_multibox", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 124 | build_file = "//:models.BUILD", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 125 | sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96", |
| 126 | urls = [ |
| 127 | "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip", |
| 128 | "http://download.tensorflow.org/models/mobile_multibox_v1a.zip", |
| 129 | ], |
Andrew Harp | a30b992 | 2016-11-28 15:41:52 -0800 | [diff] [blame] | 130 | ) |
| 131 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 132 | http_archive( |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 133 | name = "stylize", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 134 | build_file = "//:models.BUILD", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 135 | sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa", |
| 136 | urls = [ |
| 137 | "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip", |
| 138 | "http://download.tensorflow.org/models/stylize_v1.zip", |
| 139 | ], |
Dan Smilkov | 38a4afc | 2016-08-31 11:56:58 -0800 | [diff] [blame] | 140 | ) |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 141 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 142 | http_archive( |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 143 | name = "speech_commands", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 144 | build_file = "//:models.BUILD", |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 145 | sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c", |
| 146 | urls = [ |
| 147 | "http://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip", |
| 148 | "http://download.tensorflow.org/models/speech_commands_v0.01.zip", |
| 149 | ], |
| 150 | ) |