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
605329fe
Commit
605329fe
authored
Sep 16, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Sep 16, 2021
Browse files
[Cleanup] Remove unnecessary public method in the exp_factory.py
PiperOrigin-RevId: 397244624
parent
c67d2c08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
official/core/exp_factory.py
official/core/exp_factory.py
+3
-7
No files found.
official/core/exp_factory.py
View file @
605329fe
...
...
@@ -26,11 +26,7 @@ def register_config_factory(name):
return
registry
.
register
(
_REGISTERED_CONFIGS
,
name
)
def
get_exp_config_creater
(
exp_name
:
str
):
"""Looks up ExperimentConfig factory methods."""
exp_creater
=
registry
.
lookup
(
_REGISTERED_CONFIGS
,
exp_name
)
return
exp_creater
def
get_exp_config
(
exp_name
:
str
)
->
cfg
.
ExperimentConfig
:
return
get_exp_config_creater
(
exp_name
)()
"""Looks up the `ExperimentConfig` according to the `exp_name`."""
exp_creater
=
registry
.
lookup
(
_REGISTERED_CONFIGS
,
exp_name
)
return
exp_creater
()
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