mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 01:00:10 +08:00
[tune] Use isinstance instead of type in assert in HyperOptSearch (#10454)
This commit is contained in:
@@ -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