File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1303,15 +1303,13 @@ def benchmark(
13031303 )
13041304
13051305 for res in candidate_results :
1306- tuning_client . tuning_records [
1307- res .candidate_id
1308- ].benchmark_device_id = res .device_id
1309- if res . time == math .inf :
1306+ c_id = res . candidate_id
1307+ res_time = res .time
1308+ tuning_client . tuning_records [ c_id ].benchmark_device_id = res .device_id
1309+ if res_time == math .inf :
13101310 continue
1311- tuning_client .tuning_records [res .candidate_id ].benchmark_status = True
1312- tuning_client .tuning_records [res .candidate_id ].benchmark_time_us = round (
1313- res .time , 2
1314- )
1311+ tuning_client .tuning_records [c_id ].benchmark_status = True
1312+ tuning_client .tuning_records [c_id ].benchmark_time_us = round (res_time , 2 )
13151313
13161314 second_baseline_result , _ = benchmark_baseline (
13171315 devices = args .devices ,
You can’t perform that action at this time.
0 commit comments