【发布时间】:2019-04-16 12:04:05
【问题描述】:
如果有 tf.contrib 操作,我如何使用 tensorflow-serving 服务模型。我通过 Docker(最新)(tf 1.11 版本)使用 Tensorflow Serving,当我提供模型时,会出现下一条消息:
“Failed to start server. Error: Unknown: 1 servable(s) did not become available: {{{name: slider_universal version: 1} due to error: Not found: Op type not registered ‘ImageProjectiveTransformV2’ in binary running on 254345a5d9f1. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.}, }”
我也是用 bazel 构建的,但是出现了同样的错误
如果我在导出模型期间删除此操作,它可以由 tensorflow serving 提供服务
【问题讨论】:
标签: python tensorflow tensorflow-serving