From 624e0fb331ec8c40939b4c909bee2bcf069e11b9 Mon Sep 17 00:00:00 2001 From: guru4elephant Date: Wed, 12 Feb 2020 14:30:02 +0800 Subject: [PATCH] fix sdk desc --- python/paddle_serving_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index f4003369..73f67cb8 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -104,7 +104,7 @@ class Client(object): predictor_sdk = SDKConfig() predictor_sdk.set_server_endpoints(endpoints) sdk_desc = predictor_sdk.gen_desc() - self.client_handle_.create_predictor_by_desc(sdk_desc) + self.client_handle_.create_predictor_by_desc(sdk_desc.SerializeToString()) def get_feed_names(self): return self.feed_names_ -- GitLab