Skip to content

Commit f01777a

Browse files
committed
Changed fast numpy indexing to include 0
1 parent 06a7b8d commit f01777a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel_tuner/searchspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def get_list_param_indices_numpy(self) -> np.ndarray:
733733
tune_params_to_index_lookup.append({ value: index for index, value in enumerate(param_values) })
734734
tune_params_from_index_lookup.append({ index: value for index, value in enumerate(param_values) })
735735
if (all_values_integer_nonnegative and
736-
not all(isinstance(v, int) and 0 < v < 2**15 for v in param_values)
736+
not all(isinstance(v, int) and 0 <= v < 2**15 for v in param_values)
737737
):
738738
all_values_integer_nonnegative = False
739739

0 commit comments

Comments
 (0)