[英]Tensorflow serving
Does anybody know how to create a C# client for tensorflow serving? 有人知道如何为tensorflow服务创建一个C#客户端吗?
My tensorflow serving installation: 我的tensorflow服务安装:
I installed tensorflow serving using the tensorflow serving dockerfile, then inside the container I did the following: 我使用tensorflow服务dockerfile安装了tensorflow服务,然后在容器内我执行了以下操作:
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服务器:
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. 其中my_model_2包含我想要提供的导出的tensorflow模型。
Given this information I have the following questions: 鉴于此信息,我有以下问题:
As far as I understand, you need the proto files to generate a tensorflow serving client in C# for the grpc services. 据我所知,您需要proto文件为C#服务生成一个用于C#的tensorflow服务客户端。
https://github.com/Wertugo/TensorFlowServingCSharpClient This is one example I am following. https://github.com/Wertugo/TensorFlowServingCSharpClient这是我关注的一个例子。 Its the same MNIST example with C# client.
它与C#客户端的MNIST示例相同。
Hope this helps. 希望这可以帮助。
Please update here if you have got any better options. 如果您有更好的选择,请在此更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.