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
2c744ee5
Commit
2c744ee5
authored
Apr 15, 2020
by
Thor Johnsen
Browse files
Bug(?) fix
parent
208c91e0
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_adam.py
apex/contrib/optimizers/distributed_fused_adam.py
+1
-1
No files found.
apex/contrib/optimizers/distributed_fused_adam.py
View file @
2c744ee5
...
@@ -256,7 +256,7 @@ class DistributedFusedAdam(torch.optim.Optimizer):
...
@@ -256,7 +256,7 @@ class DistributedFusedAdam(torch.optim.Optimizer):
def
_pipeline_block_step
(
self
,
block_id
):
def
_pipeline_block_step
(
self
,
block_id
):
if
self
.
_new_params
is
None
:
if
self
.
_new_params
is
None
:
self
.
_new_params
=
torch
.
zeros_like
(
self
.
_flat_grads
,
dtype
=
uint8
if
self
.
_e5m2_allgather
else
self
.
_flat_grads
.
dtype
)
self
.
_new_params
=
torch
.
zeros_like
(
self
.
_flat_grads
,
dtype
=
torch
.
uint8
if
self
.
_e5m2_allgather
else
self
.
_flat_grads
.
dtype
)
start
=
block_id
*
self
.
_block_size
start
=
block_id
*
self
.
_block_size
end
=
start
+
self
.
_block_size
end
=
start
+
self
.
_block_size
...
...
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