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
a4b513b1
Commit
a4b513b1
authored
Mar 14, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Mar 14, 2021
Browse files
Typo reported by
https://github.com/tensorflow/models/pull/9672
PiperOrigin-RevId: 362836016
parent
0a17932d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/optimization.py
official/nlp/optimization.py
+1
-1
No files found.
official/nlp/optimization.py
View file @
a4b513b1
...
@@ -113,7 +113,7 @@ class AdamWeightDecay(tf.keras.optimizers.Adam):
...
@@ -113,7 +113,7 @@ class AdamWeightDecay(tf.keras.optimizers.Adam):
correct way of using L2 regularization/weight decay with Adam, since that will
correct way of using L2 regularization/weight decay with Adam, since that will
interact with the m and v parameters in strange ways.
interact with the m and v parameters in strange ways.
Instead we want
o
t decay the weights in a manner that doesn't interact with
Instead we want t
o
decay the weights in a manner that doesn't interact with
the m/v parameters. This is equivalent to adding the square of the weights to
the m/v parameters. This is equivalent to adding the square of the weights to
the loss with plain (non-momentum) SGD.
the loss with plain (non-momentum) 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