golang_predict_client/

directory
v0.0.0-...-a2be179 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2021 License: Apache-2.0

README

Golang Predict Client

Introduction

It is the predict client in golang for TensorFlow Serving.

You can compile the project easily and change the inference data for your TensorFlow models.

Usage

Install protoc and requirements.

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u google.golang.org/grpc

Generate protobuf files.

cd ./src/

./generate_proto_files.sh

Compile the project.

# Setup $GOPATH

go build -x

Run the predict client.

# For dense model
./src --model_name dense

# For sparse model
./src --model_name sparse

Directories

Path Synopsis
usage: go run predict_client.go --server_addr 127.0.0.1:9000 --model_name dense --model_version 1
usage: go run predict_client.go --server_addr 127.0.0.1:9000 --model_name dense --model_version 1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL