“f62a80ba6a0423983142b36dd78c03c4bf21fb9d”上不存在“...Research/PWCNet/paddle_model/pwc_net_paddle.pdparams”
提交 edcf1132 编写于 作者: G gongweibao

add get_config test=develop

上级 ba7d67f8
...@@ -26,7 +26,8 @@ import grpc ...@@ -26,7 +26,8 @@ import grpc
from .proto import multi_lang_general_model_service_pb2 from .proto import multi_lang_general_model_service_pb2
sys.path.append( sys.path.append(
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'proto')) os.path.join(os.path.abspath(os.path.dirname(__file__)), 'proto'))
from .proto import grpc_pb2 as grpc_pb2 from .proto import multi_lang_general_model_service_pb2 as pb2
from .proto import multi_lang_general_model_service_pb2_grpc as grpc_pb2
int_type = 0 int_type = 0
float_type = 1 float_type = 1
...@@ -395,7 +396,7 @@ class MultiLangClient(object): ...@@ -395,7 +396,7 @@ class MultiLangClient(object):
self._parse_model_config(proto_txt) self._parse_model_config(proto_txt)
def _load_client_config(self, stub): def _load_client_config(self, stub):
req= grpc_pb2.ServingConfig() req= pb2.ServingConfig()
self._config = self.stub_.get_client_proto_text(req) self._config = self.stub_.get_client_proto_text(req)
self._parse_model_config(config.proto_txt) self._parse_model_config(config.proto_txt)
......
...@@ -441,7 +441,7 @@ class Server(object): ...@@ -441,7 +441,7 @@ class Server(object):
class MultiLangServerService( class MultiLangServerService(
pb2_grpc.MultiLangGeneralModelService): grpc_pb2.MultiLangGeneralModelService):
def __init__(self, model_config_path, endpoints): def __init__(self, model_config_path, endpoints):
from paddle_serving_client import Client from paddle_serving_client import Client
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册