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
96b017a8
Commit
96b017a8
authored
Mar 31, 2020
by
Kexin Yu
Browse files
add printing to test
parent
90729bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
apex/contrib/optimizers/fused_lamb.py
apex/contrib/optimizers/fused_lamb.py
+1
-0
No files found.
apex/contrib/optimizers/fused_lamb.py
View file @
96b017a8
...
@@ -81,6 +81,7 @@ class FusedLAMB(torch.optim.Optimizer):
...
@@ -81,6 +81,7 @@ class FusedLAMB(torch.optim.Optimizer):
self
.
adam_w_mode
=
1
if
adam_w_mode
else
0
self
.
adam_w_mode
=
1
if
adam_w_mode
else
0
self
.
set_grad_none
=
set_grad_none
self
.
set_grad_none
=
set_grad_none
print
(
"apex.contrib.optimiziers.FusedLAMB: testing global gradient clipping"
)
def
zero_grad
(
self
):
def
zero_grad
(
self
):
if
self
.
set_grad_none
:
if
self
.
set_grad_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