mirror of
https://github.com/wassname/ray.git
synced 2026-10-03 12:50:16 +08:00
[tune] Use isinstance instead of type in assert in HyperOptSearch (#10454)
This commit is contained in:
1 parent
efa1d51aea
commit
bac8f14739
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user