Skip to content

Commit

Permalink
NumPy 2.0 compliant np.inf
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanwerkhoven committed Jun 19, 2024
1 parent 3617b06 commit 2735ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_tuner/strategies/bayes_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_hyperparam(name: str, default, supported_values=list()):
self.invalid_value = 1e20
self.opt_direction = opt_direction
if opt_direction == "min":
self.worst_value = np.PINF
self.worst_value = np.inf
self.argopt = np.argmin
elif opt_direction == "max":
self.worst_value = np.NINF
Expand Down

0 comments on commit 2735ff8

Please sign in to comment.