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
22c2be04
Commit
22c2be04
authored
Mar 12, 2020
by
Thor Johnsen
Browse files
Bug fix
parent
9c742695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
apex/contrib/optimizers/distributed_fused_adam.py
apex/contrib/optimizers/distributed_fused_adam.py
+1
-3
No files found.
apex/contrib/optimizers/distributed_fused_adam.py
View file @
22c2be04
...
@@ -48,10 +48,8 @@ class DistributedFusedAdam(torch.optim.Optimizer):
...
@@ -48,10 +48,8 @@ class DistributedFusedAdam(torch.optim.Optimizer):
compute_L2_grad_norm
=
False
,
distributed_weight_update
=
0
,
compute_L2_grad_norm
=
False
,
distributed_weight_update
=
0
,
dwu_group_size
=
0
,
dwu_num_blocks
=
4
,
dwu_num_rs_pg
=
1
,
dwu_num_ar_pg
=
4
,
dwu_group_size
=
0
,
dwu_num_blocks
=
4
,
dwu_num_rs_pg
=
1
,
dwu_num_ar_pg
=
4
,
dwu_num_ag_pg
=
0
,
dwu_num_blk_st
=
1
):
dwu_num_ag_pg
=
0
,
dwu_num_blk_st
=
1
):
global
fused_adam_cuda
,
radix_decomp_cuda
global
fused_adam_cuda
fused_adam_cuda
=
importlib
.
import_module
(
"fused_adam_cuda"
)
fused_adam_cuda
=
importlib
.
import_module
(
"fused_adam_cuda"
)
radix_decomp_cuda
=
importlib
.
import_module
(
"radix_decomp_cuda"
)
# To-Do: Add radix decomp args to fairseq adam optimizer
self
.
_amp_scale_adjustment
=
amp_scale_adjustment
self
.
_amp_scale_adjustment
=
amp_scale_adjustment
...
...
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