Skip to content
Open
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: 1 addition & 3 deletions kernel_tuner/strategies/pyatf_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ def tune(searchspace: Searchspace, runner, tuning_options):
get_next_coordinates_or_indices = search_technique.get_next_coordinates
coordinates_or_indices = set() # Set[Union[Coordinates, Index]]
costs = {} # Dict[Union[Coordinates, Index], Cost]
eval_count = 0

try:
# optimization loop (KT-compatible re-implementation of `make_step` from TuningRun)
while eval_count < searchspace.size:
while len(tuning_options.unique_results) < searchspace.size:

# get new coordinates
if not coordinates_or_indices:
Expand All @@ -110,7 +109,6 @@ def tune(searchspace: Searchspace, runner, tuning_options):
valid = False
else:
cost = opt_result
eval_count += 1

# record the evaluation
costs[coords_or_index] = cost
Expand Down