Skip to content

Commit

Permalink
Revert "Implemented incremental / fixed seed"
Browse files Browse the repository at this point in the history
This reverts commit b88d9b4.
  • Loading branch information
fjwillemsen committed Jul 15, 2024
1 parent b88d9b4 commit c3e1e17
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions kernel_tuner/searchspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def __init__(
framework="PythonConstraint",
solver_method="PC_OptimizedBacktrackingSolver",
path_to_ATF_cache: Path = None,
use_incremental_seed: bool = True,
) -> None:
"""Build a searchspace using the variables and constraints.
Expand Down Expand Up @@ -108,9 +107,6 @@ def __init__(
self.__prepare_neighbors_index()
if build_neighbors_index:
self.neighbors_index = self.__build_neighbors_index(neighbor_method)
if use_incremental_seed:
self.incremental_seed = 11072024
self.use_incremental_seed = use_incremental_seed

# def __build_searchspace_ortools(self, block_size_names: list, max_threads: int) -> Tuple[List[tuple], np.ndarray, dict, int]:
# # Based on https://developers.google.com/optimization/cp/cp_solver#python_2
Expand Down Expand Up @@ -614,9 +610,6 @@ def get_random_sample_indices(self, num_samples: int) -> np.ndarray:
raise ValueError(
f"The number of samples requested ({num_samples}) is greater than the searchspace size ({self.size})"
)
if self.use_incremental_seed:
np.random.seed(self.incremental_seed)
self.incremental_seed += 1
return np.random.choice(self.indices, size=num_samples, replace=False)

def get_random_sample(self, num_samples: int) -> List[tuple]:
Expand Down

0 comments on commit c3e1e17

Please sign in to comment.