Skip to content

Commit 7b56254

Browse files
authored
[tuner] Fix review comment from PR: #1265 (#1282)
No need to enumerate as only one worker is there. Moved worker_id from out of loop and kept it as 0.
1 parent 66967d8 commit 7b56254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tuner/tuner/libtuner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,8 @@ def benchmark_baseline(
858858
# Use tqdm to create a progress bar.
859859
with tqdm(total=len(devices)) as pbar:
860860
try:
861-
for worker_id_, device_id_ in enumerate(devices):
862-
worker_id = worker_id_
861+
worker_id = 0
862+
for device_id_ in devices:
863863
device_id = device_id_
864864
result = run_iree_benchmark_module_command(
865865
BenchmarkPack(

0 commit comments

Comments
 (0)