@@ -4,34 +4,34 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
4
5
5
http_archive (
6
6
name = "icu" ,
7
- strip_prefix = "icu-release-64-2" ,
7
+ build_file = "//third_party/icu:BUILD.bzl" ,
8
+ patch_args = ["-p1" ],
9
+ patches = ["//third_party/icu:udata.patch" ],
8
10
sha256 = "dfc62618aa4bd3ca14a3df548cd65fe393155edd213e49c39f3a30ccd618fc27" ,
11
+ strip_prefix = "icu-release-64-2" ,
9
12
urls = [
10
13
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/unicode-org/icu/archive/release-64-2.zip" ,
11
14
"https://github.com/unicode-org/icu/archive/release-64-2.zip" ,
12
15
],
13
- build_file = "//third_party/icu:BUILD.bzl" ,
14
- patches = ["//third_party/icu:udata.patch" ],
15
- patch_args = ["-p1" ],
16
16
)
17
17
18
18
http_archive (
19
19
name = "com_google_sentencepiece" ,
20
- strip_prefix = "sentencepiece-0.1.96" ,
20
+ build_file = "//third_party/sentencepiece:BUILD" ,
21
+ patch_args = ["-p1" ],
22
+ patches = ["//third_party/sentencepiece:sp.patch" ],
21
23
sha256 = "8409b0126ebd62b256c685d5757150cf7fcb2b92a2f2b98efb3f38fc36719754" ,
24
+ strip_prefix = "sentencepiece-0.1.96" ,
22
25
urls = [
23
- "https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip"
26
+ "https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip" ,
24
27
],
25
- build_file = "//third_party/sentencepiece:BUILD" ,
26
- patches = ["//third_party/sentencepiece:sp.patch" ],
27
- patch_args = ["-p1" ],
28
28
)
29
29
30
30
http_archive (
31
31
name = "cppitertools" ,
32
- urls = ["https://github.com/ryanhaining/cppitertools/archive/refs/tags/v2.0.zip" ],
33
32
sha256 = "e56741b108d6baced98c4ccd83fd0d5a545937f2845978799c28d0312c0dee3d" ,
34
33
strip_prefix = "cppitertools-2.0" ,
34
+ urls = ["https://github.com/ryanhaining/cppitertools/archive/refs/tags/v2.0.zip" ],
35
35
)
36
36
37
37
http_archive (
@@ -56,10 +56,9 @@ http_archive(
56
56
57
57
http_archive (
58
58
name = "org_tensorflow" ,
59
- strip_prefix = "tensorflow-40998f44c0c500ce0f6e3b1658dfbc54f838a82a" ,
60
- sha256 = "5a5bc4599964c71277dcac0d687435291e5810d2ac2f6283cc96736febf73aaf" ,
59
+ strip_prefix = "tensorflow-2.20.0" ,
61
60
urls = [
62
- "https://github.com/tensorflow/tensorflow/archive/40998f44c0c500ce0f6e3b1658dfbc54f838a82a. zip"
61
+ "https://github.com/tensorflow/tensorflow/archive/v2.20.0. zip" ,
63
62
],
64
63
)
65
64
@@ -74,13 +73,13 @@ http_archive(
74
73
75
74
http_archive (
76
75
name = "pybind11" ,
76
+ build_file = "//third_party/pybind11:BUILD.bzl" ,
77
+ sha256 = "efc901aa0aab439a3fea6efeaf930b5a349fb06394bf845c64ce15a9cf8f0240" ,
78
+ strip_prefix = "pybind11-2.13.4" ,
77
79
urls = [
78
80
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/pybind/pybind11/archive/v2.13.4.tar.gz" ,
79
81
"https://github.com/pybind/pybind11/archive/v2.13.4.tar.gz" ,
80
82
],
81
- sha256 = "efc901aa0aab439a3fea6efeaf930b5a349fb06394bf845c64ce15a9cf8f0240" ,
82
- strip_prefix = "pybind11-2.13.4" ,
83
- build_file = "//third_party/pybind11:BUILD.bzl" ,
84
83
)
85
84
86
85
http_archive (
@@ -99,27 +98,31 @@ load("//tensorflow_text:tftext.bzl", "py_deps_profile")
99
98
100
99
py_deps_profile (
101
100
name = "release_or_nightly" ,
102
- requirements_in = "//oss_scripts/pip_package:requirements.in" ,
103
- pip_repo_name = "pypi" ,
104
101
deps_map = {
105
- "tensorflow" : ["tf-nightly" , "tf_header_lib" , "libtensorflow_framework" ],
106
- "tf-keras" : ["tf-keras-nightly" ]
102
+ "tensorflow" : [
103
+ "tf-nightly" ,
104
+ "tf_header_lib" ,
105
+ "libtensorflow_framework" ,
106
+ ],
107
+ "tf-keras" : ["tf-keras-nightly" ],
107
108
},
109
+ pip_repo_name = "pypi" ,
110
+ requirements_in = "//oss_scripts/pip_package:requirements.in" ,
108
111
switch = {
109
- "IS_NIGHTLY" : "nightly"
110
- }
112
+ "IS_NIGHTLY" : "false" ,
113
+ },
111
114
)
112
115
113
116
load ("@org_tensorflow//third_party/py:python_init_repositories.bzl" , "python_init_repositories" )
114
117
115
118
python_init_repositories (
119
+ default_python_version = "system" ,
116
120
requirements = {
117
121
"3.9" : "//oss_scripts/pip_package:requirements_lock_3_9.txt" ,
118
122
"3.10" : "//oss_scripts/pip_package:requirements_lock_3_10.txt" ,
119
123
"3.11" : "//oss_scripts/pip_package:requirements_lock_3_11.txt" ,
120
124
"3.12" : "//oss_scripts/pip_package:requirements_lock_3_12.txt" ,
121
125
},
122
- default_python_version = "system" ,
123
126
)
124
127
125
128
load ("@org_tensorflow//third_party/py:python_init_toolchains.bzl" , "python_init_toolchains" )
@@ -136,18 +139,28 @@ install_deps()
136
139
137
140
# Initialize TensorFlow dependencies.
138
141
load ("@org_tensorflow//tensorflow:workspace3.bzl" , "tf_workspace3" )
142
+
139
143
tf_workspace3 ()
144
+
140
145
load ("@org_tensorflow//tensorflow:workspace2.bzl" , "tf_workspace2" )
146
+
141
147
tf_workspace2 ()
148
+
142
149
load ("@org_tensorflow//tensorflow:workspace1.bzl" , "tf_workspace1" )
150
+
143
151
tf_workspace1 ()
152
+
144
153
load ("@org_tensorflow//tensorflow:workspace0.bzl" , "tf_workspace0" )
154
+
145
155
tf_workspace0 ()
146
156
147
157
# Set up Android.
148
158
load ("@org_tensorflow//third_party/android:android_configure.bzl" , "android_configure" )
149
- android_configure (name = "local_config_android" )
159
+
160
+ android_configure (name = "local_config_android" )
161
+
150
162
load ("@local_config_android//:android.bzl" , "android_workspace" )
163
+
151
164
android_workspace ()
152
165
153
166
load (
0 commit comments