From 23cde85df8396be645f0cfaa92fb31d3ed890256 Mon Sep 17 00:00:00 2001 From: barrierye Date: Wed, 8 Jul 2020 03:47:47 +0800 Subject: [PATCH] update operator --- python/pipeline/operator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/pipeline/operator.py b/python/pipeline/operator.py index 094a71c2..7d1e1326 100644 --- a/python/pipeline/operator.py +++ b/python/pipeline/operator.py @@ -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,9 +343,9 @@ 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._fetch_names) + self._client = self.init_client( + client_type, self._client_config, self._server_endpoints, + self._fetch_names) # user defined self.init_op() except Exception as e: -- GitLab