mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[tune] Use isinstance instead of type in assert in HyperOptSearch (#10454)
This commit is contained in:
parent
efa1d51aea
commit
bac8f14739
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class HyperOptSearch(Searcher):
|
|||
self._hpopt_trials = hpo.Trials()
|
||||
self._points_to_evaluate = 0
|
||||
else:
|
||||
assert type(points_to_evaluate) == list
|
||||
assert isinstance(points_to_evaluate, (list, tuple))
|
||||
self._hpopt_trials = generate_trials_to_calculate(
|
||||
points_to_evaluate)
|
||||
self._hpopt_trials.refresh()
|
||||
|
|
Loading…
Add table
Reference in a new issue