mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[RLLib] Fix HyperOptSearch tuple to list conversion (#12462)
Co-authored-by: Sumanth Ratna <sumanthratna@gmail.com>
This commit is contained in:
parent
1d0ade1b93
commit
60a545ab57
1 changed files with 3 additions and 1 deletions
|
@ -1053,7 +1053,9 @@ class Trainer(Trainable):
|
|||
raise ValueError("`model._time_major` only supported "
|
||||
"iff `_use_trajectory_view_api` is True!")
|
||||
|
||||
if type(config["input_evaluation"]) != list:
|
||||
if isinstance(config["input_evaluation"], tuple):
|
||||
config["input_evaluation"] = list(config["input_evaluation"])
|
||||
elif not isinstance(config["input_evaluation"], list):
|
||||
raise ValueError(
|
||||
"`input_evaluation` must be a list of strings, got {}!".format(
|
||||
config["input_evaluation"]))
|
||||
|
|
Loading…
Add table
Reference in a new issue