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
OpenDAS
apex
Commits
111ee132
Commit
111ee132
authored
Apr 16, 2019
by
Michael Carilli
Browse files
Adding control point for scale adjustment
parent
d69011de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/optimizers/fused_adam.py
apex/optimizers/fused_adam.py
+1
-1
No files found.
apex/optimizers/fused_adam.py
View file @
111ee132
...
...
@@ -81,7 +81,7 @@ class FusedAdam(torch.optim.Optimizer):
if
hasattr
(
self
,
"_amp_stash"
):
grads
=
self
.
_amp_stash
.
grads
output_params
=
self
.
_amp_stash
.
output_params
scale
=
self
.
_amp_stash
.
scale
scale
=
self
.
_amp_stash
.
scale
*
scale
grad_norms
=
self
.
_amp_stash
.
grad_norms
if
grads
is
None
:
...
...
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