File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,8 @@ def population_statistics(population: list[PopulationMember]) -> str:
386
386
population = sorted (population , key = performance )
387
387
if math .isinf (population [- 1 ].perf ):
388
388
working = [x for x in population if not math .isinf (x .perf )]
389
+ if len (working ) == 0 :
390
+ raise exc .NoConfigFound
389
391
return (
390
392
f"failed={ len (population ) - len (working )} "
391
393
f"min={ working [0 ].perf :.4f} "
Original file line number Diff line number Diff line change @@ -245,6 +245,10 @@ class NotEnoughConfigs(BaseError):
245
245
message = "FiniteSearch requires at least two configs, but got {0}."
246
246
247
247
248
+ class NoConfigFound (BaseError ):
249
+ message = "No working config found from autotuning"
250
+
251
+
248
252
class CantCombineTypesInControlFlow (BaseError ):
249
253
message = "Cannot combine types for {0!r} in control flow: {1} and {2}"
250
254
You can’t perform that action at this time.
0 commit comments