Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Cpp Predict Client

Introduction

TensorFlow serving is the gRPC service for general TensorFlow models. We can implement the C++ gRPC client to predict.

If you are using bazel, refer to to inception_client.cc

Usage

Add the binary in tensorflow_serving/example/BUILD.

cc_binary(
    name = "tensorflow_model_client",
    srcs = [
        "serving_client_cpp.cc",
    ],
    deps = [
        "//tensorflow_serving/apis:prediction_service_proto",
    ],
)

Compile the project.

bazel build //tensorflow_serving/example:tensorflow_model_client

Run the predict client.

bazel-bin/tensorflow_serving/example/tensorflow_model_client