Skip to content

Commit 810ffe3

Browse files
committed
Remove unused tuning_options parameter to keep SonarQube happy
1 parent ac6900f commit 810ffe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel_tuner/strategies/simulated_annealing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def tune(searchspace: Searchspace, runner, tuning_options):
5959
print(e)
6060
return cost_func.results
6161

62-
ap = acceptance_prob(old_cost, new_cost, T, tuning_options)
62+
ap = acceptance_prob(old_cost, new_cost, T)
6363
r = random.random()
6464

6565
if ap > r:
@@ -90,7 +90,7 @@ def tune(searchspace: Searchspace, runner, tuning_options):
9090

9191
tune.__doc__ = common.get_strategy_docstring("Simulated Annealing", _options)
9292

93-
def acceptance_prob(old_cost, new_cost, T, tuning_options):
93+
def acceptance_prob(old_cost, new_cost, T):
9494
"""Annealing equation, with modifications to work towards a lower value."""
9595
res = 0.0
9696
# if start pos is not valid, always move

0 commit comments

Comments
 (0)