TensorFlow Serving是經過rpc接口遠程訪問tensorflow引擎的服務器。git
TensorFlow Serving能夠經過容器啓動,方法以下:github
docker run --name tfserver --restart always tensorflow/tf_grpc_server:0.8.0 \ --cluster_spec="worker|localhost:2220;localhost:2221,ps|localhost:3220;localhost:3221" \ --job_name=worker --task_id=0
詳細的TensorFlow Serving容器構建方法參考: https://github.com/openthings/serving/blob/master/tensorflow_serving/g3doc/setup.mddocker
在分佈式環境中運行TensorFlow的詳細指南: https://www.tensorflow.org/how_tos/distributed/#distributed-tensorflow服務器