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
74b847c0
Commit
74b847c0
authored
Jun 11, 2020
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Jun 11, 2020
Browse files
Internal change
PiperOrigin-RevId: 316052873
parent
41613994
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
official/modeling/optimization/configs/learning_rate_config.py
...ial/modeling/optimization/configs/learning_rate_config.py
+5
-5
official/modeling/optimization/configs/optimization_config.py
...cial/modeling/optimization/configs/optimization_config.py
+1
-1
official/modeling/optimization/optimizer_factory_test.py
official/modeling/optimization/optimizer_factory_test.py
+1
-1
No files found.
official/modeling/optimization/configs/learning_rate_config.py
View file @
74b847c0
...
...
@@ -146,17 +146,17 @@ class LinearWarmupConfig(base_config.Config):
@
dataclasses
.
dataclass
class
Pol
i
nomialWarmupConfig
(
base_config
.
Config
):
class
Pol
y
nomialWarmupConfig
(
base_config
.
Config
):
"""Configuration for linear warmup schedule config.
This class is a container for the pol
i
nomial warmup schedule configs.
This class is a container for the pol
y
nomial warmup schedule configs.
Attributes:
name: The name of warmup schedule. Defaults to Pol
i
nomial.
power: Pol
i
nomial power. Defaults to 1.
name: The name of warmup schedule. Defaults to Pol
y
nomial.
power: Pol
y
nomial power. Defaults to 1.
warmup_steps: Warmup steps. Defaults to None.
"""
name
:
str
=
'pol
i
nomial'
name
:
str
=
'pol
y
nomial'
power
:
float
=
1
warmup_steps
:
Optional
[
int
]
=
None
official/modeling/optimization/configs/optimization_config.py
View file @
74b847c0
...
...
@@ -76,7 +76,7 @@ class WarmupConfig(oneof.OneOfConfig):
"""
type
:
Optional
[
str
]
=
None
linear
:
lr_cfg
.
LinearWarmupConfig
=
lr_cfg
.
LinearWarmupConfig
()
polynomial
:
lr_cfg
.
Pol
i
nomialWarmupConfig
=
lr_cfg
.
Pol
i
nomialWarmupConfig
()
polynomial
:
lr_cfg
.
Pol
y
nomialWarmupConfig
=
lr_cfg
.
Pol
y
nomialWarmupConfig
()
@
dataclasses
.
dataclass
...
...
official/modeling/optimization/optimizer_factory_test.py
View file @
74b847c0
...
...
@@ -259,7 +259,7 @@ class OptimizerFactoryTest(tf.test.TestCase):
for
step
,
value
in
expected_lr_step_values
:
self
.
assertAlmostEqual
(
lr
(
step
).
numpy
(),
value
)
def
test_stepwise_lr_with_pol
i
nomial_warmup_schedule
(
self
):
def
test_stepwise_lr_with_pol
y
nomial_warmup_schedule
(
self
):
params
=
{
'optimizer'
:
{
'type'
:
'sgd'
,
...
...
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