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