Skip to content

Commit

Permalink
Merge pull request #1 from Asjidkalam/master
Browse files Browse the repository at this point in the history
Fixed Code Execution on tensorflow/models
  • Loading branch information
JamieSlome committed Jan 25, 2021
2 parents efa0c44 + f6e9eda commit 02b4f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/modeling/hyperparams/params_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _get_kvs(tokens, params_dict):
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)


Expand Down

0 comments on commit 02b4f87

Please sign in to comment.