Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 从Tensorflow服务服务器获取StatusCode.FAILED“前提条件:服务签名密钥”;tensorflow/服务/预测“;找不到_Python_Tensorflow_Tensorflow Serving - Fatal编程技术网

Python 从Tensorflow服务服务器获取StatusCode.FAILED“前提条件:服务签名密钥”;tensorflow/服务/预测“;找不到

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

尝试连接到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.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)))