From 335e7219c1e61bf704c3850f962d7838df4a7f64 Mon Sep 17 00:00:00 2001 From: barrierye Date: Sun, 28 Jun 2020 16:47:11 +0800 Subject: [PATCH] remove useless code --- python/pipeline/operator.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/python/pipeline/operator.py b/python/pipeline/operator.py index cb5edd39..6cdbbe50 100644 --- a/python/pipeline/operator.py +++ b/python/pipeline/operator.py @@ -136,14 +136,9 @@ class Op(object): "{} Please override preprocess func.".format(err_info)) _LOGGER.debug(self._log('feed_dict: {}'.format(feed_dict))) _LOGGER.debug(self._log('fetch: {}'.format(self._fetch_names))) - if isinstance(self._client, MultiLangClient): - call_result = self._client.predict( - feed=feed_dict, fetch=self._fetch_names) - _LOGGER.debug(self._log("get call_result")) - else: - call_result = self._client.predict( - feed=feed_dict, fetch=self._fetch_names) - _LOGGER.debug(self._log("get fetch_dict")) + call_result = self._client.predict( + feed=feed_dict, fetch=self._fetch_names) + _LOGGER.debug(self._log("get call_result")) return call_result def postprocess(self, fetch_dict): -- GitLab