Skip to content

Commit fced83c

Browse files
committed
undo
1 parent c423749 commit fced83c

File tree

1 file changed

+2
-2
lines changed
  • paddlex/inference/components

1 file changed

+2
-2
lines changed

paddlex/inference/components/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _check_output(self, output, ori_data):
182182
output_list.append(data)
183183
return output_list
184184
else:
185-
# assert isinstance(ori_data, dict) and isinstance(output, dict)
185+
assert isinstance(ori_data, dict) and isinstance(output, dict)
186186
data = ori_data.copy() if self.keep_input else {}
187187
if isinstance(self.outputs, type(None)):
188188
logging.debug(
@@ -193,7 +193,7 @@ def _check_output(self, output, ori_data):
193193
for k, v in self.outputs.items():
194194
if k not in output:
195195
raise Exception(
196-
f"The value of key ({k}) is needed add to Data. But not found in output of {self.__class__.__name__}: ({output})!"
196+
f"The value of key ({k}) is needed add to Data. But not found in output of {self.__class__.__name__}: ({output.keys()})!"
197197
)
198198
data.update({v: output[k]})
199199
return [data]

0 commit comments

Comments
 (0)