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
ef437358
"git@developer.sourcefind.cn:OpenDAS/torch-harmonics.git" did not exist on "49a61eee26c1bbca82b9ad3369c245e7be7aa13c"
Commit
ef437358
authored
May 30, 2020
by
Thor Johnsen
Browse files
Bug fix
parent
e6925e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/contrib/optimizers/distributed_fused_lamb.py
apex/contrib/optimizers/distributed_fused_lamb.py
+1
-1
No files found.
apex/contrib/optimizers/distributed_fused_lamb.py
View file @
ef437358
...
@@ -493,7 +493,7 @@ class DistributedFusedLAMB(torch.optim.Optimizer):
...
@@ -493,7 +493,7 @@ class DistributedFusedLAMB(torch.optim.Optimizer):
def
_do_overlapped_reduction
(
self
,
param_i
,
param_grads_size
,
param_offset
,
param
):
def
_do_overlapped_reduction
(
self
,
param_i
,
param_grads_size
,
param_offset
,
param
):
# handle overlapped reductions
# handle overlapped reductions
if
param
.
dtype
=
torch
.
float16
:
if
param
.
dtype
=
=
torch
.
float16
:
self
.
_grads_fp16
.
append
(
(
param
.
grad
,
self
.
_individual_flat_grads
[
param_i
])
)
self
.
_grads_fp16
.
append
(
(
param
.
grad
,
self
.
_individual_flat_grads
[
param_i
])
)
else
:
else
:
self
.
_grads_fp32
.
append
(
(
param
.
grad
,
self
.
_individual_flat_grads
[
param_i
])
)
self
.
_grads_fp32
.
append
(
(
param
.
grad
,
self
.
_individual_flat_grads
[
param_i
])
)
...
...
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