Vijay Vasudevan | 8cc567b | 2016-05-26 11:05:13 -0800 | [diff] [blame] | 1 | workspace(name = "org_tensorflow") |
| 2 | |
Brian Zhao | 8782b76 | 2020-01-13 19:32:03 -0800 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Brian Zhao | 9d6198d | 2020-01-15 11:42:24 -0800 | [diff] [blame] | 4 | load("//third_party:repo.bzl", "tf_http_archive") |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 5 | |
Brian Zhao | 9d6198d | 2020-01-15 11:42:24 -0800 | [diff] [blame] | 6 | tf_http_archive( |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 7 | name = "io_bazel_rules_closure", |
A. Unique TensorFlower | 265042c | 2019-06-13 11:02:06 -0700 | [diff] [blame] | 8 | sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", |
| 9 | strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149", |
Brian Zhao | 9d6198d | 2020-01-15 11:42:24 -0800 | [diff] [blame] | 10 | patch_file = "@org_tensorflow//third_party:rules_closure.patch", |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 11 | urls = [ |
Frank Chen | 2b5ece2 | 2019-07-23 22:21:29 -0700 | [diff] [blame] | 12 | "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", |
A. Unique TensorFlower | 265042c | 2019-06-13 11:02:06 -0700 | [diff] [blame] | 13 | "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] | 14 | ], |
| 15 | ) |
Gunhan Gulsoy | b4ae852 | 2018-09-26 02:31:31 -0700 | [diff] [blame] | 16 | |
A. Unique TensorFlower | dad4197 | 2019-06-24 07:21:59 -0700 | [diff] [blame] | 17 | # Load tf_repositories() before loading dependencies for other repository so |
| 18 | # that dependencies like com_google_protobuf won't be overridden. |
| 19 | load("//tensorflow:workspace.bzl", "tf_repositories") |
A. Unique TensorFlower | 508f76b | 2019-06-19 04:14:12 -0700 | [diff] [blame] | 20 | # Please add all new TensorFlow dependencies in workspace.bzl. |
A. Unique TensorFlower | dad4197 | 2019-06-24 07:21:59 -0700 | [diff] [blame] | 21 | tf_repositories() |
A. Unique TensorFlower | 508f76b | 2019-06-19 04:14:12 -0700 | [diff] [blame] | 22 | |
A. Unique TensorFlower | 98ecdee | 2019-10-05 01:15:18 -0700 | [diff] [blame] | 23 | register_toolchains("@local_config_python//:py_toolchain") |
| 24 | |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 25 | load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") |
Gunhan Gulsoy | b4ae852 | 2018-09-26 02:31:31 -0700 | [diff] [blame] | 26 | |
Justine Tunney | 02f276c | 2017-02-03 17:13:49 -0800 | [diff] [blame] | 27 | closure_repositories() |
| 28 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 29 | load("//third_party/toolchains/preconfig/generate:archives.bzl", |
| 30 | "bazel_toolchains_archive") |
| 31 | |
| 32 | bazel_toolchains_archive() |
| 33 | |
| 34 | load( |
| 35 | "@bazel_toolchains//repositories:repositories.bzl", |
| 36 | bazel_toolchains_repositories = "repositories", |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 37 | ) |
| 38 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 39 | bazel_toolchains_repositories() |
| 40 | |
| 41 | load( |
A. Unique TensorFlower | b0022ad | 2019-02-06 15:41:09 -0800 | [diff] [blame] | 42 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 43 | container_repositories = "repositories", |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 44 | ) |
| 45 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 46 | container_repositories() |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 47 | |
A. Unique TensorFlower | 62bc640 | 2018-12-13 00:11:34 -0800 | [diff] [blame] | 48 | load("//third_party/toolchains/preconfig/generate:workspace.bzl", |
| 49 | "remote_config_workspace") |
A. Unique TensorFlower | 54cc77e | 2018-11-12 09:31:53 -0800 | [diff] [blame] | 50 | |
| 51 | remote_config_workspace() |
| 52 | |
A. Unique TensorFlower | 1942fea | 2019-04-11 11:23:15 -0700 | [diff] [blame] | 53 | # Use `swift_rules_dependencies` to fetch the toolchains. With the |
| 54 | # `git_repository` rules above, the following call will skip redefining them. |
A. Unique TensorFlower | 146c2da | 2018-12-17 15:59:15 -0800 | [diff] [blame] | 55 | load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies") |
| 56 | swift_rules_dependencies() |
| 57 | |
Ilya Biryukov | 9e651e4 | 2018-03-22 05:33:42 -0700 | [diff] [blame] | 58 | # We must check the bazel version before trying to parse any other BUILD |
| 59 | # files, in case the parsing of those build files depends on the bazel |
| 60 | # version we require here. |
| 61 | load("//tensorflow:version_check.bzl", "check_bazel_version_at_least") |
Gunhan Gulsoy | aaea541 | 2019-11-29 22:08:00 -0800 | [diff] [blame] | 62 | check_bazel_version_at_least("1.0.0") |
Ilya Biryukov | 9e651e4 | 2018-03-22 05:33:42 -0700 | [diff] [blame] | 63 | |
Michael Case | 5105350 | 2018-06-05 17:47:19 -0700 | [diff] [blame] | 64 | load("//third_party/android:android_configure.bzl", "android_configure") |
| 65 | android_configure(name="local_config_android") |
| 66 | load("@local_config_android//:android.bzl", "android_workspace") |
| 67 | android_workspace() |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 68 | |
A. Unique TensorFlower | 508f76b | 2019-06-19 04:14:12 -0700 | [diff] [blame] | 69 | # If a target is bound twice, the later one wins, so we have to do tf bindings |
| 70 | # at the end of the WORKSPACE file. |
| 71 | load("//tensorflow:workspace.bzl", "tf_bind") |
| 72 | tf_bind() |
Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 73 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 74 | http_archive( |
Michael Case | d90054e | 2018-02-07 14:36:00 -0800 | [diff] [blame] | 75 | name = "inception_v1", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 76 | build_file = "//:models.BUILD", |
Michael Case | d90054e | 2018-02-07 14:36:00 -0800 | [diff] [blame] | 77 | sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 78 | urls = [ |
Frank Chen | 57e0d1a | 2019-07-24 18:43:43 -0700 | [diff] [blame] | 79 | "https://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 80 | ], |
Dan Smilkov | f0e9bd3 | 2016-11-09 12:53:00 -0800 | [diff] [blame] | 81 | ) |
| 82 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 83 | http_archive( |
A. Unique TensorFlower | 53aabd5 | 2017-08-09 18:18:26 -0700 | [diff] [blame] | 84 | name = "mobile_ssd", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 85 | build_file = "//:models.BUILD", |
A. Unique TensorFlower | 53aabd5 | 2017-08-09 18:18:26 -0700 | [diff] [blame] | 86 | sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8", |
| 87 | urls = [ |
Frank Chen | 57e0d1a | 2019-07-24 18:43:43 -0700 | [diff] [blame] | 88 | "https://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip", |
A. Unique TensorFlower | 53aabd5 | 2017-08-09 18:18:26 -0700 | [diff] [blame] | 89 | ], |
| 90 | ) |
| 91 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 92 | http_archive( |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 93 | name = "mobile_multibox", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 94 | build_file = "//:models.BUILD", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 95 | sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96", |
| 96 | urls = [ |
Frank Chen | 57e0d1a | 2019-07-24 18:43:43 -0700 | [diff] [blame] | 97 | "https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 98 | ], |
Andrew Harp | a30b992 | 2016-11-28 15:41:52 -0800 | [diff] [blame] | 99 | ) |
| 100 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 101 | http_archive( |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 102 | name = "stylize", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 103 | build_file = "//:models.BUILD", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 104 | sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa", |
| 105 | urls = [ |
Frank Chen | 57e0d1a | 2019-07-24 18:43:43 -0700 | [diff] [blame] | 106 | "https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip", |
Justine Tunney | 52b4d47 | 2017-05-17 16:13:33 -0700 | [diff] [blame] | 107 | ], |
Dan Smilkov | 38a4afc | 2016-08-31 11:56:58 -0800 | [diff] [blame] | 108 | ) |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 109 | |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 110 | http_archive( |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 111 | name = "speech_commands", |
A. Unique TensorFlower | 5b14577 | 2018-11-30 11:11:23 -0800 | [diff] [blame] | 112 | build_file = "//:models.BUILD", |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 113 | sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c", |
| 114 | urls = [ |
Frank Chen | 57e0d1a | 2019-07-24 18:43:43 -0700 | [diff] [blame] | 115 | "https://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip", |
Pete Warden | 7d01f89 | 2017-08-18 09:32:30 -0700 | [diff] [blame] | 116 | ], |
| 117 | ) |