"tests/vscode:/vscode.git/clone" did not exist on "4c51afce2a3e26de31db10174906a2f6db5cc9e0"
Commit da588b7d authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Merge pull request #9669 from 418sec:1-other-models

PiperOrigin-RevId: 353731112
parents 6e0b2ccf 02b4f871
......@@ -312,7 +312,7 @@ class ParamsDict(object):
def read_yaml_to_params_dict(file_path):
"""Reads a YAML file to a ParamsDict."""
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)
......
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