Skip to content

Commit caa334a

Browse files
committed
[cherry-pick] fix the iteration method (#4576)
1 parent 2da1e99 commit caa334a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlex/inference/pipelines/_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def execute(
4444
input_future_pairs = []
4545
for pipeline in self._pipelines:
4646
try:
47-
input_batch = list(input_batches)[0]
47+
input_batch = next(input_batches)
4848
except StopIteration:
4949
out_of_data = True
5050
break

0 commit comments

Comments
 (0)