blob: 11c5cdb2070e79b16540a39f13cab28608962340 [file] [log] [blame]
Vijay Vasudevan8cc567b2016-05-26 11:05:13 -08001workspace(name = "org_tensorflow")
2
Justine Tunney02f276c2017-02-03 17:13:49 -08003http_archive(
4 name = "io_bazel_rules_closure",
Jianwei Xied9f93c42018-01-24 10:02:35 -08005 sha256 = "6691c58a2cd30a86776dd9bb34898b041e37136f2dc7e24cadaeaf599c95c657",
6 strip_prefix = "rules_closure-08039ba8ca59f64248bb3b6ae016460fe9c9914f",
Justine Tunney02f276c2017-02-03 17:13:49 -08007 urls = [
Jianwei Xied9f93c42018-01-24 10:02:35 -08008 "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz",
9 "https://github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz", # 2018-01-16
Justine Tunney02f276c2017-02-03 17:13:49 -080010 ],
11)
12
13load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
14
15closure_repositories()
16
Ilya Biryukov9e651e42018-03-22 05:33:42 -070017# We must check the bazel version before trying to parse any other BUILD
18# files, in case the parsing of those build files depends on the bazel
19# version we require here.
20load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
21check_bazel_version_at_least("0.10.0")
22
Martin Wickebc456e32017-03-23 12:31:16 -080023load("//tensorflow:workspace.bzl", "tf_workspace")
Shanqing Caiefd40e52017-01-08 20:31:30 -080024
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080025# Uncomment and update the paths in these entries to build the Android demo.
26#android_sdk_repository(
27# name = "androidsdk",
28# api_level = 23,
Justine Tunney52b4d472017-05-17 16:13:33 -070029# # Ensure that you have the build_tools_version below installed in the
A. Unique TensorFlowerccbc8992017-04-04 16:10:08 -080030# # SDK manager as it updates periodically.
Andrew Harp787d86a2017-09-20 12:54:12 -070031# build_tools_version = "26.0.1",
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080032# # Replace with path to Android SDK on your system
33# path = "<PATH_TO_SDK>",
34#)
35#
36#android_ndk_repository(
37# name="androidndk",
38# path="<PATH_TO_NDK>",
Justine Tunney52b4d472017-05-17 16:13:33 -070039# # This needs to be 14 or higher to compile TensorFlow.
Vijay Vasudevana1fba7f2017-07-28 10:58:56 -070040# # Please specify API level to >= 21 to build for 64-bit
41# # archtectures or the Android NDK will automatically select biggest
42# # API level that it supports without notice.
A. Unique TensorFlowerccbc8992017-04-04 16:10:08 -080043# # Note that the NDK version is not the API level.
44# api_level=14)
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080045
Kiril Gorovoy5b5976a2016-03-10 14:06:08 -080046# Please add all new TensorFlow dependencies in workspace.bzl.
Kiril Gorovoy77da1682016-02-24 18:02:16 -080047tf_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080048
Dan Smilkovf0e9bd32016-11-09 12:53:00 -080049new_http_archive(
Michael Cased90054e2018-02-07 14:36:00 -080050 name = "inception_v1",
Justine Tunney52b4d472017-05-17 16:13:33 -070051 build_file = "models.BUILD",
Michael Cased90054e2018-02-07 14:36:00 -080052 sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
Justine Tunney52b4d472017-05-17 16:13:33 -070053 urls = [
Michael Cased90054e2018-02-07 14:36:00 -080054 "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
55 "http://download.tensorflow.org/models/inception_v1.zip",
Justine Tunney52b4d472017-05-17 16:13:33 -070056 ],
Dan Smilkovf0e9bd32016-11-09 12:53:00 -080057)
58
Andrew Harpa30b9922016-11-28 15:41:52 -080059new_http_archive(
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -070060 name = "mobile_ssd",
61 build_file = "models.BUILD",
62 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
63 urls = [
64 "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
65 "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
66 ],
67)
68
69new_http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -070070 name = "mobile_multibox",
71 build_file = "models.BUILD",
72 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
73 urls = [
74 "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
75 "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
76 ],
Andrew Harpa30b9922016-11-28 15:41:52 -080077)
78
Andrew Harp6426c4e2017-01-11 14:05:52 -080079new_http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -070080 name = "stylize",
81 build_file = "models.BUILD",
82 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
83 urls = [
84 "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
85 "http://download.tensorflow.org/models/stylize_v1.zip",
86 ],
Dan Smilkov38a4afc2016-08-31 11:56:58 -080087)
Pete Warden7d01f892017-08-18 09:32:30 -070088
89new_http_archive(
90 name = "speech_commands",
91 build_file = "models.BUILD",
92 sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
93 urls = [
94 "http://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
95 "http://download.tensorflow.org/models/speech_commands_v0.01.zip",
96 ],
97)