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
17160f34
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "fedba24a63b047239d3d9616052b912661894afb"
Commit
17160f34
authored
Apr 01, 2020
by
Thor Johnsen
Browse files
Bug fix
parent
e5c8e3c9
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 @
17160f34
...
@@ -495,7 +495,7 @@ class DistributedFusedAdam(torch.optim.Optimizer):
...
@@ -495,7 +495,7 @@ class DistributedFusedAdam(torch.optim.Optimizer):
if
closure
is
not
None
:
if
closure
is
not
None
:
loss
=
closure
()
loss
=
closure
()
if
self
.
_last_step
or
not
self
.
_full_pipeline
:
if
self
.
_last_step
or
not
self
.
_overlap_reductions
or
not
self
.
_full_pipeline
:
if
self
.
_new_params
is
None
:
if
self
.
_new_params
is
None
:
self
.
_new_params
=
torch
.
zeros_like
(
self
.
_flat_grads
)
self
.
_new_params
=
torch
.
zeros_like
(
self
.
_flat_grads
)
for
inv_block_id
in
range
(
self
.
_num_blocks
):
for
inv_block_id
in
range
(
self
.
_num_blocks
):
...
...
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