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
a1681e06
Commit
a1681e06
authored
Aug 23, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Aug 23, 2021
Browse files
Internal change
PiperOrigin-RevId: 392499545
parent
8d6f5271
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
official/modeling/hyperparams/base_config.py
official/modeling/hyperparams/base_config.py
+5
-7
No files found.
official/modeling/hyperparams/base_config.py
View file @
a1681e06
...
...
@@ -49,6 +49,11 @@ class Config(params_dict.ParamsDict):
default_params
:
dataclasses
.
InitVar
[
Optional
[
Mapping
[
str
,
Any
]]]
=
None
restrictions
:
dataclasses
.
InitVar
[
Optional
[
List
[
str
]]]
=
None
def
__post_init__
(
self
,
default_params
,
restrictions
):
super
().
__init__
(
default_params
=
default_params
,
restrictions
=
restrictions
)
@
classmethod
def
_isvalidsequence
(
cls
,
v
):
"""Check if the input values are valid sequences.
...
...
@@ -140,13 +145,6 @@ class Config(params_dict.ParamsDict):
else
subconfig_type
)
return
subconfig_type
def
__post_init__
(
self
,
default_params
,
restrictions
,
*
args
,
**
kwargs
):
super
().
__init__
(
default_params
=
default_params
,
restrictions
=
restrictions
,
*
args
,
**
kwargs
)
def
_set
(
self
,
k
,
v
):
"""Overrides same method in ParamsDict.
...
...
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