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
499a003d
Commit
499a003d
authored
Oct 29, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Oct 29, 2020
Browse files
Internal change
PiperOrigin-RevId: 339805681
parent
162f3741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/modeling/optimization/configs/optimizer_config.py
official/modeling/optimization/configs/optimizer_config.py
+3
-0
No files found.
official/modeling/optimization/configs/optimizer_config.py
View file @
499a003d
...
@@ -29,9 +29,12 @@ class BaseOptimizerConfig(base_config.Config):
...
@@ -29,9 +29,12 @@ class BaseOptimizerConfig(base_config.Config):
their L2 norm exceeds this value.
their L2 norm exceeds this value.
clipvalue: float >= 0 or None. If not None, Gradients will be clipped when
clipvalue: float >= 0 or None. If not None, Gradients will be clipped when
their absolute value exceeds this value.
their absolute value exceeds this value.
global_clipnorm: float >= 0 or None. If not None, gradient of all weights is
clipped so that their global norm is no higher than this value
"""
"""
clipnorm
:
Optional
[
float
]
=
None
clipnorm
:
Optional
[
float
]
=
None
clipvalue
:
Optional
[
float
]
=
None
clipvalue
:
Optional
[
float
]
=
None
global_clipnorm
:
Optional
[
float
]
=
None
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
...
...
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