提交 23cde85d 编写于 作者: B barrierye

update operator

上级 7cb306e5
...@@ -144,7 +144,7 @@ class Op(object): ...@@ -144,7 +144,7 @@ class Op(object):
if err != 0: if err != 0:
raise NotImplementedError( raise NotImplementedError(
"{} Please override preprocess func.".format(err_info)) "{} Please override preprocess func.".format(err_info))
call_result = self.client.predict( call_result = self._client.predict(
feed=feed_dict, fetch=self._fetch_names) feed=feed_dict, fetch=self._fetch_names)
_LOGGER.debug(self._log("get call_result")) _LOGGER.debug(self._log("get call_result"))
return call_result return call_result
...@@ -332,7 +332,7 @@ class Op(object): ...@@ -332,7 +332,7 @@ class Op(object):
self._profiler = TimeProfiler() self._profiler = TimeProfiler()
self._profiler.enable(self._use_profile) self._profiler.enable(self._use_profile)
# init client # init client
self.client = self.init_client( self._client = self.init_client(
client_type, self._client_config, client_type, self._client_config,
self._server_endpoints, self._fetch_names) self._server_endpoints, self._fetch_names)
# user defined # user defined
...@@ -343,8 +343,8 @@ class Op(object): ...@@ -343,8 +343,8 @@ class Op(object):
self._profiler = TimeProfiler() self._profiler = TimeProfiler()
self._profiler.enable(self._use_profile) self._profiler.enable(self._use_profile)
# init client # init client
self.client = self.init_client(client_type, self._client_config, self._client = self.init_client(
self._server_endpoints, client_type, self._client_config, self._server_endpoints,
self._fetch_names) self._fetch_names)
# user defined # user defined
self.init_op() self.init_op()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册