Skip to content

Commit 3d43da5

Browse files
committed
update tensorflow serving to version 2.1.0
update workspace deps and patches update version strings minor readme updates
1 parent 76e9e7e commit 3d43da5

File tree

10 files changed

+54
-65
lines changed

10 files changed

+54
-65
lines changed

Diff for: README.md

+23-10
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,29 @@ a linux amd64 (x86_64) host.
88

99
**Upstream Project:** [tensorflow/serving](https://github.com/tensorflow/serving)
1010

11+
**Usage Documentation:** [TensorFlow Serving with Docker](https://www.tensorflow.org/tfx/serving/docker)
12+
1113
This project is basically a giant build wrapper around [tensorflow/serving](https://github.com/tensorflow/serving)
1214
with the intention of making it easy to cross-build CPU optimized model server
13-
docker images targeting common linux arm platforms. Additonally, a set of built
14-
images is also maintained for some of the most popular linux arm platforms on
15+
docker images targeting common linux arm platforms. Additonally, a set of docker
16+
images is produced for some of the most popular linux arm platforms and hosted on
1517
Docker Hub.
1618

1719
## The Docker Images
1820

1921
**Hosted on Docker Hub:** [emacski/tensorflow-serving](https://hub.docker.com/r/emacski/tensorflow-serving)
2022

23+
### Quick Start
24+
25+
On many consumer / developer 64-bit and 32-bit arm platforms you can simply:
26+
```sh
27+
docker pull emacski/tensorflow-serving:latest
28+
# or
29+
docker pull emacski/tensorflow-serving:2.1.0
30+
```
31+
32+
Refer to [TensorFlow Serving with Docker](https://www.tensorflow.org/tfx/serving/docker) for usage.
33+
2134
### Images
2235

2336
`emacski/tensorflow-serving:[Tag]`
@@ -33,7 +46,7 @@ Docker Hub.
3346
Example
3447
```bash
3548
# on beaglebone black
36-
docker pull emacski/tensorflow-serving:2.0.0-linux_arm_armv7-a_neon_vfpv3
49+
docker pull emacski/tensorflow-serving:2.1.0-linux_arm_armv7-a_neon_vfpv3
3750
```
3851

3952
### Aliases
@@ -52,7 +65,7 @@ docker pull emacski/tensorflow-serving:2.0.0-linux_arm_armv7-a_neon_vfpv3
5265
Example
5366
```bash
5467
# on Raspberry PI 3 B+
55-
docker pull emacski/tensorflow-serving:2.0.0-linux_arm64
68+
docker pull emacski/tensorflow-serving:2.1.0-linux_arm64
5669
# or
5770
docker pull emacski/tensorflow-serving:latest-linux_arm64
5871
```
@@ -86,14 +99,14 @@ docker pull emacski/tensorflow-serving
8699
Example
87100
```sh
88101
# on Raspberry PI 3 B+
89-
docker pull emacski/tensorflow-serving:2.0.0
90-
# the actual image used is emacski/tensorflow-serving:2.0.0-linux_arm64
91-
# itself actually being emacski/tensorflow-serving:2.0.0-linux_arm64_armv8-a
102+
docker pull emacski/tensorflow-serving:2.1.0
103+
# the actual image used is emacski/tensorflow-serving:2.1.0-linux_arm64
104+
# itself actually being emacski/tensorflow-serving:2.1.0-linux_arm64_armv8-a
92105
```
93106

94107
### Debug Images
95108

96-
As of version 2.0.0, debug images are also built and published to docker hub.
109+
As of version 2.1.0, debug images are also built and published to docker hub.
97110
These images are identical to the non-debug images with the addition of busybox
98111
utils. The utils are located at `/busybox/bin` which is also included in the
99112
image `PATH` env variable.
@@ -104,9 +117,9 @@ suffix (if one is required) in the image tag.
104117
Examples
105118
```sh
106119
# multi-arch
107-
docker pull emacski/tensorflow-serving:2.0.0-debug
120+
docker pull emacski/tensorflow-serving:2.1.0-debug
108121
# specific image
109-
docker pull emacski/tensorflow-serving:2.0.0-debug-linux_arm64_armv8-a
122+
docker pull emacski/tensorflow-serving:2.1.0-debug-linux_arm64_armv8-a
110123
# specific alias
111124
docker pull emacski/tensorflow-serving:latest-debug-linux_arm64
112125
```

Diff for: WORKSPACE

+26-20
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ register_toolchains(
2020
)
2121

2222
# hack: tf depends on this specific toolchain target name to be used
23-
# as crosstool for one its config settings when building for arm
23+
# as crosstool for one of its config_settings when building for arm
2424
load("//tools/cpp:cc_repo_config.bzl", "cc_repo_config")
2525

2626
cc_repo_config(name = "local_config_arm_compiler")
@@ -42,9 +42,9 @@ http_archive(
4242
# https://github.com/bazelbuild/rules_docker
4343
http_archive(
4444
name = "io_bazel_rules_docker",
45-
sha256 = "df13123c44b4a4ff2c2f337b906763879d94871d16411bf82dcfeba892b58607",
46-
strip_prefix = "rules_docker-0.13.0",
47-
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.13.0/rules_docker-v0.13.0.tar.gz"],
45+
sha256 = "dc97fccceacd4c6be14e800b2a00693d5e8d07f69ee187babfd04a80a9f8e250",
46+
strip_prefix = "rules_docker-0.14.1",
47+
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.14.1/rules_docker-v0.14.1.tar.gz"],
4848
)
4949

5050
load("@io_bazel_rules_docker//repositories:repositories.bzl", container_repos = "repositories")
@@ -57,22 +57,25 @@ container_deps()
5757

5858
# tensorflow/tensorflow and deps
5959

60+
# tensorflow 2.1.0
6061
# https://github.com/tensorflow/tensorflow
6162
http_archive(
6263
name = "org_tensorflow",
6364
patches = [
65+
# use canonical cpu value
6466
"//third_party/tensorflow:BUILD.patch",
67+
# arm (32-bit) datatype sizes
6568
"//third_party/tensorflow:curl.BUILD.patch",
6669
"//third_party/tensorflow:hwloc.BUILD.bazel.patch",
6770
],
68-
sha256 = "b38de3408a4190246f2814dd7388cec72807b736fbcef5087e3b86a3f179bb0f",
69-
strip_prefix = "tensorflow-64c3d382cadf7bbe8e7e99884bede8284ff67f56",
71+
sha256 = "1f4b09e6bff7f847bb1034699076055e50e87534d76008af8295ed71195b2b36",
72+
strip_prefix = "tensorflow-e5bf8de410005de06a7ff5393fafdf832ef1d4ad",
7073
urls = [
71-
"https://github.com/tensorflow/tensorflow/archive/64c3d382cadf7bbe8e7e99884bede8284ff67f56.tar.gz",
74+
"https://github.com/tensorflow/tensorflow/archive/e5bf8de410005de06a7ff5393fafdf832ef1d4ad.tar.gz",
7275
],
7376
)
7477

75-
# see tensorflow/serving/WORKSPACE
78+
# see tensorflow/serving/WORKSPACE and tensorflow/tensorflow/WORKSPACE
7679
http_archive(
7780
name = "io_bazel_rules_closure",
7881
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
@@ -82,18 +85,25 @@ http_archive(
8285
],
8386
)
8487

85-
# requires c++ includes for non-c++ compile action, so this patch
88+
# see tensorflow/serving/WORKSPACE and tensorflow/tensorflow/WORKSPACE
89+
http_archive(
90+
name = "bazel_skylib",
91+
sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0",
92+
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel-skylib.0.9.0.tar.gz"],
93+
)
94+
95+
# patch: requires c++ includes for non-c++ compile action, so this patch
8696
# disables default libc++ includes as the toolchain sets includes manually.
8797
http_archive(
8898
name = "nsync",
8999
patches = [
90100
"//third_party/tensorflow:nsync.BUILD.patch",
91101
],
92-
sha256 = "704be7f58afa47b99476bbac7aafd1a9db4357cef519db361716f13538547ffd",
93-
strip_prefix = "nsync-1.20.2",
102+
sha256 = "caf32e6b3d478b78cff6c2ba009c3400f8251f646804bcb65465666a9cea93c4",
103+
strip_prefix = "nsync-1.22.0",
94104
urls = [
95-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/nsync/archive/1.20.2.tar.gz",
96-
"https://github.com/google/nsync/archive/1.20.2.tar.gz",
105+
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/nsync/archive/1.22.0.tar.gz",
106+
"https://github.com/google/nsync/archive/1.22.0.tar.gz",
97107
],
98108
)
99109

@@ -113,14 +123,10 @@ http_archive(
113123
# https://github.com/tensorflow/serving
114124
http_archive(
115125
name = "tf_serving",
116-
patches = [
117-
"//third_party/serving:apis.BUILD.patch",
118-
"//third_party/serving:oss.BUILD.patch",
119-
],
120-
sha256 = "52e2dfed08c185d0fb9da9454063dac053f0889118b38e818b74631ea1b06ebe",
121-
strip_prefix = "serving-2.0.0",
126+
sha256 = "19338a59af96f0056088010fe04416ca09b0e8a9424ef742c392aa93c3b6b4de",
127+
strip_prefix = "serving-2.1.0",
122128
urls = [
123-
"https://github.com/tensorflow/serving/archive/2.0.0.tar.gz",
129+
"https://github.com/tensorflow/serving/archive/2.1.0.tar.gz",
124130
],
125131
)
126132

Diff for: tensorflow_model_server/main.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ int main(int argc, char** argv) {
204204
}
205205

206206
if (display_version) {
207-
std::cout << "TensorFlow ModelServer: 2.0.0" << "\n"
207+
std::cout << "TensorFlow ModelServer: 2.1.0" << "\n"
208208
<< "TensorFlow Library: " << TF_Version() << "\n"
209209
<< "TFS_ARM Rev: 1 (" << cBUILD_SCM_REV_STAMP << ")\n";
210210
return 0;

Diff for: third_party/serving/BUILD

Whitespace-only changes.

Diff for: third_party/serving/apis.BUILD.patch

-11
This file was deleted.

Diff for: third_party/serving/oss.BUILD.patch

-8
This file was deleted.

Diff for: third_party/tensorflow/.bazelrc

-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ build:common_arm --define=tensorflow_mkldnn_contraction_kernel=0
1212

1313
build:linux_amd64 --define=CURL_OS=x86_64-linux-gnu
1414
build:linux_amd64 --define=CURL_SIZEOF_LONG=8
15-
build:linux_amd64 --define=HWLOC_SIZEOF_UNSIGNED_LONG=8
1615

1716
build:linux_arm64 --define=CURL_OS=aarch64-linux-gnu
1817
build:linux_arm64 --define=CURL_SIZEOF_LONG=8
19-
build:linux_arm64 --define=HWLOC_SIZEOF_UNSIGNED_LONG=8
2018

2119
build:linux_arm --copt=-Wno-narrowing
2220
build:linux_arm --define=CURL_OS=arm-linux-gnueabihf
2321
build:linux_arm --define=CURL_SIZEOF_LONG=4
24-
build:linux_arm --define=HWLOC_SIZEOF_UNSIGNED_LONG=4

Diff for: third_party/tensorflow/BUILD.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- tensorflow/BUILD 2020-01-06 12:50:31.290658479 -0800
2-
+++ BUILD.new 2020-01-06 12:51:03.351222470 -0800
3-
@@ -112,7 +112,7 @@
1+
--- tensorflow/BUILD 2020-01-14 21:22:22.111062733 -0800
2+
+++ BUILD.new 2020-01-14 21:22:55.755332837 -0800
3+
@@ -141,7 +141,7 @@
44
name = "raspberry_pi_armeabi",
55
values = {
66
"crosstool_top": "@local_config_arm_compiler//:toolchain",

Diff for: third_party/tensorflow/curl.BUILD.patch

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
--- third_party/curl.BUILD 2019-10-18 14:46:08.200439000 -0700
22
+++ curl.BUILD.new 2019-10-18 14:52:09.320557509 -0700
3-
@@ -280,7 +280,6 @@
4-
"-DCURL_DISABLE_NTLM", # turning it off in configure is not enough
5-
"-DHAVE_LIBZ",
6-
"-DHAVE_ZLIB_H",
7-
- "-Wno-string-plus-int",
8-
],
9-
}) + select({
10-
"@org_tensorflow//tensorflow:macos": [
113
@@ -505,7 +504,7 @@
124
"# define HAVE_RAND_STATUS 1",
135
"# define HAVE_SSL_GET_SHUTDOWN 1",

Diff for: tools/wsc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi
3535

3636
# project vars
3737

38-
echo "UPSTREAM_TFS_VERSION 2.0.0"
38+
echo "UPSTREAM_TFS_VERSION 2.1.0"
3939
echo "PROJECT_REGISTRY_PREFIX $PROJECT_REGISTRY_PREFIX"
4040
echo "PROJECT_GIT_BRANCH $PROJECT_GIT_BRANCH"
4141
echo "PROJECT_GIT_COMMIT $PROJECT_GIT_COMMIT"

0 commit comments

Comments
 (0)