We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766c319 commit 87822c1Copy full SHA for 87822c1
codeflash/optimization/function_optimizer.py
@@ -403,8 +403,11 @@ def determine_best_candidate(
403
f"Added results from line profiler to candidates, total candidates now: {original_len}"
404
)
405
future_line_profile_results = None
406
+ try:
407
+ candidate = candidates.popleft()
408
+ except IndexError as e:
409
+ continue
410
candidate_index += 1
- candidate = candidates.popleft()
411
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.bin")).unlink(missing_ok=True)
412
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.sqlite")).unlink(missing_ok=True)
413
logger.info(f"Optimization candidate {candidate_index}/{original_len}:")
0 commit comments