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
782a0299
Commit
782a0299
authored
Apr 13, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Apr 13, 2021
Browse files
Fix parse_configuration using "in" with ParseConfigOptions
PiperOrigin-RevId: 368257425
parent
3d9ae6de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/core/train_utils.py
official/core/train_utils.py
+3
-0
No files found.
official/core/train_utils.py
View file @
782a0299
...
...
@@ -234,6 +234,9 @@ class ParseConfigOptions:
tf_data_service
:
str
=
''
params_override
:
str
=
''
def
__contains__
(
self
,
name
):
return
name
in
dataclasses
.
asdict
(
self
)
def
parse_configuration
(
flags_obj
,
lock_return
=
True
,
print_return
=
True
):
"""Parses ExperimentConfig from flags."""
...
...
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