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
87aca22a
Unverified
Commit
87aca22a
authored
May 28, 2020
by
Max V. Irgiznov
Committed by
GitHub
May 28, 2020
Browse files
Fixed a typo (#856)
parent
5cb187f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/optimizers/fused_lamb.py
apex/optimizers/fused_lamb.py
+1
-1
No files found.
apex/optimizers/fused_lamb.py
View file @
87aca22a
...
...
@@ -112,7 +112,7 @@ class FusedLAMB(torch.optim.Optimizer):
continue
if
p
.
dtype
==
torch
.
float32
:
g_all_32
.
append
(
p
.
grad
.
data
)
elif
p
.
d
y
tpe
==
torch
.
float16
:
elif
p
.
dt
y
pe
==
torch
.
float16
:
g_all_16
.
append
(
p
.
grad
.
data
)
else
:
raise
RuntimeError
(
'FusedLAMB only support fp16 and fp32.'
)
...
...
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