github.com/figroc/tensorflow-serving-client

A prebuilt tensorflow serving client from the tensorflow serving proto files


License
Apache-2.0
Install
go get github.com/figroc/tensorflow-serving-client

Documentation

tensorflow-serving-client

Build Status

A prebuilt tensorflow serving client from the tensorflow serving proto files.

Currently supported build: C++, Java, Python, Node, Go, Mono, Rust.

Check tensorflow serving project for details: https://tensorflow.github.io/serving/

update protos

Release Status Release Status Release Status

Set desired version in the VERSION file and invoke ./update.sh.

build libraries

Grpc tools are needed for building variant packages.

  • Install protobuf-compiler-grpc and libprotobuf-dev on Ubuntu
  • Install grpc and protobuf on macOS

See Dockerfile for details.

NOTE: grpc@1.35 and protobuf@3.14 are required

Target Command Outputs Artifacts
native gradle cmake build/cmake Publish Status
java gradle java build/libs Publish Status
python gradle wheel build/dist Publish Status
node gradle node build/node Publish Status
go gradle golang build/go Publish Status
mono gradle mono build/mono Publish Status
rust gradle rust build/cargo Publish Status

using docker

Invoke ./build.sh instead of gradle to build artifacts using the docker.

The building container runs as user gradle whose UID:GID is 1000:1000. It goes well given that the UID:GID pair of the user matches the one in the host OS.

Otherwise you have to configure it manually. There are two approaches you can take either:

  1. Create a new user in the host OS to match the UID:GID pair of gradle.
  2. Make the dirs .gradle, build and obj in the project root to be world-writable.

known issues