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
132d991f
Commit
132d991f
authored
Apr 24, 2022
by
Mark Daoust
Committed by
A. Unique TensorFlower
Apr 24, 2022
Browse files
Internal change
PiperOrigin-RevId: 444154402
parent
ccacb666
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/modeling/optimization/optimizer_factory.py
official/modeling/optimization/optimizer_factory.py
+3
-0
No files found.
official/modeling/optimization/optimizer_factory.py
View file @
132d991f
...
@@ -86,6 +86,8 @@ class OptimizerFactory:
...
@@ -86,6 +86,8 @@ class OptimizerFactory:
(4) Build optimizer.
(4) Build optimizer.
This is a typical example for using this class:
This is a typical example for using this class:
```
params = {
params = {
'optimizer': {
'optimizer': {
'type': 'sgd',
'type': 'sgd',
...
@@ -105,6 +107,7 @@ class OptimizerFactory:
...
@@ -105,6 +107,7 @@ class OptimizerFactory:
opt_factory = OptimizerFactory(opt_config)
opt_factory = OptimizerFactory(opt_config)
lr = opt_factory.build_learning_rate()
lr = opt_factory.build_learning_rate()
optimizer = opt_factory.build_optimizer(lr)
optimizer = opt_factory.build_optimizer(lr)
```
"""
"""
def
__init__
(
self
,
config
:
opt_cfg
.
OptimizationConfig
):
def
__init__
(
self
,
config
:
opt_cfg
.
OptimizationConfig
):
...
...
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