未验证 提交 c6338059 编写于 作者: M MRXLT 提交者: GitHub

Merge pull request #160 from guru4elephant/fix_sdk_desc

fix sdk desc problem
...@@ -63,7 +63,7 @@ class SDKConfig(object): ...@@ -63,7 +63,7 @@ class SDKConfig(object):
self.sdk_desc.default_variant_conf.rpc_parameter.protocol = "baidu_std" self.sdk_desc.default_variant_conf.rpc_parameter.protocol = "baidu_std"
self.sdk_desc.default_variant_conf.rpc_parameter.max_channel_per_request = 3 self.sdk_desc.default_variant_conf.rpc_parameter.max_channel_per_request = 3
return str(self.sdk_desc) return self.sdk_desc
class Client(object): class Client(object):
...@@ -104,7 +104,6 @@ class Client(object): ...@@ -104,7 +104,6 @@ class Client(object):
predictor_sdk = SDKConfig() predictor_sdk = SDKConfig()
predictor_sdk.set_server_endpoints(endpoints) predictor_sdk.set_server_endpoints(endpoints)
sdk_desc = predictor_sdk.gen_desc() sdk_desc = predictor_sdk.gen_desc()
timestamp = time.asctime(time.localtime(time.time()))
self.client_handle_.create_predictor_by_desc(sdk_desc) self.client_handle_.create_predictor_by_desc(sdk_desc)
def get_feed_names(self): def get_feed_names(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册