Skip to content

Commit 958f8bd

Browse files
committed
Replaced undefined references to self
1 parent 7d3861d commit 958f8bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel_tuner/strategies/diff_evo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ def differential_evolution(searchspace, cost_func, bounds, popsize, maxiter, F,
119119
population = np.array(list(list(p) for p in searchspace.get_random_sample(popsize)))
120120
else:
121121
population = []
122-
dna_size = len(self.tune_params)
123-
for _ in range(self.pop_size):
122+
dna_size = len(tune_params)
123+
for _ in range(pop_size):
124124
dna = []
125-
for key in self.tune_params:
126-
dna.append(random.choice(self.tune_params[key]))
125+
for key in tune_params:
126+
dna.append(random.choice(tune_params[key]))
127127
population.append(dna)
128128
population = np.array(population)
129129

0 commit comments

Comments
 (0)