Python 从Tensorflow服务服务器获取StatusCode.FAILED“前提条件:服务签名密钥”;tensorflow/服务/预测“;找不到
尝试连接到tf服务服务器时,从我的python grpc客户端获取以下错误:Python 从Tensorflow服务服务器获取StatusCode.FAILED“前提条件:服务签名密钥”;tensorflow/服务/预测“;找不到,python,tensorflow,tensorflow-serving,Python,Tensorflow,Tensorflow Serving,尝试连接到tf服务服务器时,从我的python grpc客户端获取以下错误: <_Rendezvous of RPC that terminated with: status = StatusCode.FAILED_PRECONDITION details = "Serving signature key "tensorflow/serving/predict" not found." debug_error_string = "{"created":"@1540559424.720048
<_Rendezvous of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "Serving signature key "tensorflow/serving/predict" not found."
debug_error_string = "{"created":"@1540559424.720048798","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1099,"grpc_message":"Serving signature key "tensorflow/serving/predict" not found.","grpc_status":9}"
>
客户端出现此错误的原因是什么?如果可能,您可以共享客户端代码,以便我们尝试解决此问题。另外,请共享保存的\u Model\u CLI,以便我们了解适用于此模型的SignatureDefs。
prediction_signature = tf.saved_model.signature_def_utils.build_signature_def(
inputs=input_signature,
outputs=output_signature,
method_name=tf.saved_model.signature_constants.PREDICT_METHOD_NAME)
builder = saved_model_builder.SavedModelBuilder(os.path.join(output_path, str(version_number)))