提交 8fe03edb 编写于 作者: W wangjiawei04

fix operator.py

上级 3c686f5f
......@@ -232,7 +232,6 @@ class Op(object):
def init_client(self, client_config, server_endpoints,
fetch_names):
print("init client", fetch_names)
if self.with_serving == False:
_LOGGER.info("Op({}) has no client (and it also do not "
"run the process function)".format(self.name))
......@@ -313,7 +312,6 @@ class Op(object):
return input_dict
def process(self, feed_batch, typical_logid):
print("now we start process")
err, err_info = ChannelData.check_batch_npdata(feed_batch)
if err != 0:
_LOGGER.critical(
......@@ -325,7 +323,6 @@ class Op(object):
else:
call_result = self.client.predict(
feed=feed_batch, fetch=self._fetch_names, log_id=typical_logid)
print("now we end predict")
if isinstance(self.client, MultiLangClient):
if call_result is None or call_result["serving_status_code"] != 0:
return None
......@@ -563,7 +560,6 @@ class Op(object):
lod_offset_right = lod_offset[data_offset_right]
midped_data_dict[data_id][name] = value[
lod_offset_left:lod_offset_right]
print(lod_offset[data_offset_left:data_offset_right + 1], lod_offset[data_offset_left])
midped_data_dict[data_id][lod_offset_name] = \
lod_offset[data_offset_left:data_offset_right + 1] - lod_offset[data_offset_left]
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册