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
04927b3a
Commit
04927b3a
authored
Mar 21, 2020
by
Kexin Yu
Browse files
fix typo
parent
d8a78acb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
apex/contrib/optimizers/fused_lamb.py
apex/contrib/optimizers/fused_lamb.py
+1
-2
No files found.
apex/contrib/optimizers/fused_lamb.py
View file @
04927b3a
...
@@ -70,8 +70,7 @@ class FusedLAMB(torch.optim.Optimizer):
...
@@ -70,8 +70,7 @@ class FusedLAMB(torch.optim.Optimizer):
betas
=
betas
,
eps
=
eps
,
weight_decay
=
weight_decay
,
betas
=
betas
,
eps
=
eps
,
weight_decay
=
weight_decay
,
grad_averaging
=
grad_averaging
,
grad_averaging
=
grad_averaging
,
max_grad_norm
=
max_grad_norm
)
max_grad_norm
=
max_grad_norm
)
s
super
(
FusedLAMB
,
self
).
__init__
(
params
,
defaults
)
per
(
FusedLAMB
,
self
).
__init__
(
params
,
defaults
)
if
multi_tensor_applier
.
available
:
if
multi_tensor_applier
.
available
:
fused_lamb_cuda
=
importlib
.
import_module
(
"fused_lamb_cuda"
)
fused_lamb_cuda
=
importlib
.
import_module
(
"fused_lamb_cuda"
)
self
.
multi_tensor_lamb
=
fused_lamb_cuda
.
lamb
self
.
multi_tensor_lamb
=
fused_lamb_cuda
.
lamb
...
...
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