Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
02b4f871
Unverified
Commit
02b4f871
authored
Jan 25, 2021
by
Jamie Slome
Committed by
GitHub
Jan 25, 2021
Browse files
Merge pull request
#1
from Asjidkalam/master
Fixed Code Execution on tensorflow/models
parents
efa0c440
f6e9eda8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/modeling/hyperparams/params_dict.py
official/modeling/hyperparams/params_dict.py
+1
-1
No files found.
official/modeling/hyperparams/params_dict.py
View file @
02b4f871
...
@@ -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
.
Full
Loader
)
params_dict
=
yaml
.
load
(
f
,
Loader
=
yaml
.
Safe
Loader
)
return
ParamsDict
(
params_dict
)
return
ParamsDict
(
params_dict
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment