Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix count check in L0_batcher #5939

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qa/L0_batcher/batcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def check_status(self, model_name, batch_exec, request_cnt, infer_cnt,
model_name, "1")
self.assertEqual(len(stats.model_stats), 1, "expect 1 model stats")
actual_exec_cnt = stats.model_stats[0].execution_count
if actual_exec_cnt == exec_count:
if actual_exec_cnt in exec_count:
break
print("WARNING: expect {} executions, got {} (attempt {})".format(
exec_count, actual_exec_cnt, i))
Expand Down Expand Up @@ -254,7 +254,7 @@ def check_status(self, model_name, batch_exec, request_cnt, infer_cnt,
self.assertIn(
actual_exec_cnt, exec_count,
"expected model-exec-count {}, got {}".format(
request_cnt, actual_exec_cnt))
exec_count, actual_exec_cnt))

actual_infer_cnt = stats.model_stats[0].inference_count
self.assertEqual(
Expand Down