blob: 959587387eecbc7b79919c6a3efae00e645cb9a2 [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",
Justine Tunney515b3ac2017-06-05 14:21:25 -07005 sha256 = "bc41b80486413aaa551860fc37471dbc0666e1dbb5236fb6177cb83b0c105846",
6 strip_prefix = "rules_closure-dec425a4ff3faf09a56c85d082e4eed05d8ce38f",
Justine Tunney02f276c2017-02-03 17:13:49 -08007 urls = [
Justine Tunney515b3ac2017-06-05 14:21:25 -07008 "http://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/dec425a4ff3faf09a56c85d082e4eed05d8ce38f.tar.gz", # 2017-06-02
9 "https://github.com/bazelbuild/rules_closure/archive/dec425a4ff3faf09a56c85d082e4eed05d8ce38f.tar.gz",
Justine Tunney02f276c2017-02-03 17:13:49 -080010 ],
11)
12
13load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
14
15closure_repositories()
16
Martin Wickebc456e32017-03-23 12:31:16 -080017load("//tensorflow:workspace.bzl", "tf_workspace")
Shanqing Caiefd40e52017-01-08 20:31:30 -080018
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080019# Uncomment and update the paths in these entries to build the Android demo.
20#android_sdk_repository(
21# name = "androidsdk",
22# api_level = 23,
Justine Tunney52b4d472017-05-17 16:13:33 -070023# # Ensure that you have the build_tools_version below installed in the
A. Unique TensorFlowerccbc8992017-04-04 16:10:08 -080024# # SDK manager as it updates periodically.
25# build_tools_version = "25.0.2",
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080026# # Replace with path to Android SDK on your system
27# path = "<PATH_TO_SDK>",
28#)
29#
Andrew Harp21aafcd2017-03-23 11:11:54 -080030# Android NDK r12b is recommended (higher may cause issues with Bazel)
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080031#android_ndk_repository(
32# name="androidndk",
33# path="<PATH_TO_NDK>",
Justine Tunney52b4d472017-05-17 16:13:33 -070034# # This needs to be 14 or higher to compile TensorFlow.
Vijay Vasudevana1fba7f2017-07-28 10:58:56 -070035# # Please specify API level to >= 21 to build for 64-bit
36# # archtectures or the Android NDK will automatically select biggest
37# # API level that it supports without notice.
A. Unique TensorFlowerccbc8992017-04-04 16:10:08 -080038# # Note that the NDK version is not the API level.
39# api_level=14)
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080040
Kiril Gorovoy5b5976a2016-03-10 14:06:08 -080041# Please add all new TensorFlow dependencies in workspace.bzl.
Kiril Gorovoy77da1682016-02-24 18:02:16 -080042tf_workspace()
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080043
Dan Smilkovf0e9bd32016-11-09 12:53:00 -080044new_http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -070045 name = "inception5h",
46 build_file = "models.BUILD",
47 sha256 = "d13569f6a98159de37e92e9c8ec4dae8f674fbf475f69fe6199b514f756d4364",
48 urls = [
49 "http://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip",
50 "http://download.tensorflow.org/models/inception5h.zip",
51 ],
Dan Smilkovf0e9bd32016-11-09 12:53:00 -080052)
53
Andrew Harpa30b9922016-11-28 15:41:52 -080054new_http_archive(
A. Unique TensorFlower53aabd52017-08-09 18:18:26 -070055 name = "mobile_ssd",
56 build_file = "models.BUILD",
57 sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
58 urls = [
59 "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
60 "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
61 ],
62)
63
64new_http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -070065 name = "mobile_multibox",
66 build_file = "models.BUILD",
67 sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
68 urls = [
69 "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
70 "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
71 ],
Andrew Harpa30b9922016-11-28 15:41:52 -080072)
73
Andrew Harp6426c4e2017-01-11 14:05:52 -080074new_http_archive(
Justine Tunney52b4d472017-05-17 16:13:33 -070075 name = "stylize",
76 build_file = "models.BUILD",
77 sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
78 urls = [
79 "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
80 "http://download.tensorflow.org/models/stylize_v1.zip",
81 ],
Dan Smilkov38a4afc2016-08-31 11:56:58 -080082)