How can I use tensorflow serving for multiple models

无人久伴 提交于 2019-11-29 00:57:39

问题


How can I use multiple tensorflow models? I use docker container.

model_config_list: {

  config: {
    name: "model1",
    base_path: "/tmp/model",
    model_platform: "tensorflow"
  },
  config: {
     name: "model2",
     base_path: "/tmp/model2",
     model_platform: "tensorflow"
  }
}

回答1:


Built a docker image from official tensorflow serving docker file

Then inside docker image.

/usr/local/bin/tensorflow_model_server --port=9000 --model_config_file=/serving/models.conf

here /serving/models.conf is a similar file as yours.



来源:https://stackoverflow.com/questions/45749024/how-can-i-use-tensorflow-serving-for-multiple-models

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!