Use full yaml loader (load is deprecated) (#3357)
This commit is contained in:
parent
69e3f904df
commit
b4256df121
|
@ -337,7 +337,7 @@ def load_hparams_from_yaml(config_yaml: str) -> Dict[str, Any]:
|
|||
return {}
|
||||
|
||||
with fs.open(config_yaml, "r") as fp:
|
||||
tags = yaml.load(fp)
|
||||
tags = yaml.full_load(fp)
|
||||
|
||||
return tags
|
||||
|
||||
|
|
Loading…
Reference in New Issue