Diego Orellana
Diego Orellana

Reputation: 1024

Tensorflow serving

Does anybody know how to create a C# client for tensorflow serving?

My tensorflow serving installation:

I installed tensorflow serving using the tensorflow serving dockerfile, then inside the container I did the following:

pip install tensorflow

pip install tensorflow-serving-api

echo "deb [arch=amd64] http://storage.googleapis.com/tensorflow-serving-apt stable tensorflow-model-server tensorflow-model-server-universal" | tee /etc/apt/sources.list.d/tensorflow-serving.list

curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | apt-key add -
apt-get update && apt-get install tensorflow-model-server

Then I run the tensorflow serving server:

tensorflow_model_server --port=9000 --model_name=example_model --model_base_path=/serving/my_model_2 &> my_log &

where my_model_2 contains the exported tensorflow model I want to serve.

Given this information I have the following questions:

Upvotes: 2

Views: 1689

Answers (1)

RTS
RTS

Reputation: 56

As far as I understand, you need the proto files to generate a tensorflow serving client in C# for the grpc services.

https://github.com/Wertugo/TensorFlowServingCSharpClient This is one example I am following. Its the same MNIST example with C# client.

Hope this helps.

Please update here if you have got any better options.

Upvotes: 3

Related Questions