Skip to content

Commit

Permalink
predict: fix batch error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 10, 2024
1 parent 301a5b6 commit d8d2fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/openvino/src/predict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ async def run_batch(self):
for i, result in enumerate(results):
batch[i][1].set_result(result)
except Exception as e:
for i, result in enumerate(results):
batch[i][1].set_exception(e)
for input in batch:
input[1].set_exception(e)

async def flush_batch(self):
self.batch_flush = None
Expand Down

0 comments on commit d8d2fd2

Please sign in to comment.