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

update operator

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