• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1workspace(name = "org_tensorflow")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4load("//third_party:repo.bzl", "tf_http_archive")
5
6tf_http_archive(
7    name = "io_bazel_rules_closure",
8    sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
9    strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149",
10    patch_file = "@org_tensorflow//third_party:rules_closure.patch",
11    urls = [
12        "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
13        "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",  # 2019-06-13
14    ],
15)
16
17# Load tf_repositories() before loading dependencies for other repository so
18# that dependencies like com_google_protobuf won't be overridden.
19load("//tensorflow:workspace.bzl", "tf_repositories")
20# Please add all new TensorFlow dependencies in workspace.bzl.
21tf_repositories()
22
23register_toolchains("@local_config_python//:py_toolchain")
24
25load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
26
27closure_repositories()
28
29load("//third_party/toolchains/preconfig/generate:archives.bzl",
30     "bazel_toolchains_archive")
31
32bazel_toolchains_archive()
33
34load(
35    "@bazel_toolchains//repositories:repositories.bzl",
36    bazel_toolchains_repositories = "repositories",
37)
38
39bazel_toolchains_repositories()
40
41load(
42    "@io_bazel_rules_docker//repositories:repositories.bzl",
43    container_repositories = "repositories",
44)
45
46container_repositories()
47
48load("//third_party/toolchains/preconfig/generate:workspace.bzl",
49     "remote_config_workspace")
50
51remote_config_workspace()
52
53# Use `swift_rules_dependencies` to fetch the toolchains. With the
54# `git_repository` rules above, the following call will skip redefining them.
55load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
56swift_rules_dependencies()
57
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.
61load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
62check_bazel_version_at_least("1.0.0")
63
64load("//third_party/android:android_configure.bzl", "android_configure")
65android_configure(name="local_config_android")
66load("@local_config_android//:android.bzl", "android_workspace")
67android_workspace()
68
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.
71load("//tensorflow:workspace.bzl", "tf_bind")
72tf_bind()
73
74http_archive(
75    name = "inception_v1",
76    build_file = "//:models.BUILD",
77    sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
78    urls = [
79        "https://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
80    ],
81)
82
83http_archive(
84    name = "mobile_ssd",
85    build_file = "//:models.BUILD",
86    sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
87    urls = [
88        "https://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
89    ],
90)
91
92http_archive(
93    name = "mobile_multibox",
94    build_file = "//:models.BUILD",
95    sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
96    urls = [
97        "https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
98    ],
99)
100
101http_archive(
102    name = "stylize",
103    build_file = "//:models.BUILD",
104    sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
105    urls = [
106        "https://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
107    ],
108)
109
110http_archive(
111    name = "speech_commands",
112    build_file = "//:models.BUILD",
113    sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
114    urls = [
115        "https://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
116    ],
117)
118