mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 19:28:26 +08:00
[hotfix] fix backward compat with older yaml libraries
This commit is contained in:
@@ -109,7 +109,7 @@ def create_parser(parser_creator=None):
|
||||
def run(args, parser):
|
||||
if args.config_file:
|
||||
with open(args.config_file) as f:
|
||||
experiments = yaml.load(f, Loader=yaml.FullLoader)
|
||||
experiments = yaml.safe_load(f)
|
||||
else:
|
||||
# Note: keep this in sync with tune/config_parser.py
|
||||
experiments = {
|
||||
|
||||
Reference in New Issue
Block a user