"git@developer.sourcefind.cn:OpenDAS/torch-scatter.git" did not exist on "1d3d55c8621f847250e383876285ae4ad640a387"
Unverified Commit f6e9eda8 authored by Asjid Kalam's avatar Asjid Kalam Committed by GitHub
Browse files

fixed code execution

parent efa0c440
...@@ -312,7 +312,7 @@ class ParamsDict(object): ...@@ -312,7 +312,7 @@ class ParamsDict(object):
def read_yaml_to_params_dict(file_path): def read_yaml_to_params_dict(file_path):
"""Reads a YAML file to a ParamsDict.""" """Reads a YAML file to a ParamsDict."""
with tf.io.gfile.GFile(file_path, 'r') as f: with tf.io.gfile.GFile(file_path, 'r') as f:
params_dict = yaml.load(f, Loader=yaml.FullLoader) params_dict = yaml.load(f, Loader=yaml.SafeLoader)
return ParamsDict(params_dict) return ParamsDict(params_dict)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment