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
47da14a0
Commit
47da14a0
authored
Jul 02, 2019
by
Michael Carilli
Browse files
cosmetic
parent
8a32e428
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
apex/parallel/distributed.py
apex/parallel/distributed.py
+9
-10
No files found.
apex/parallel/distributed.py
View file @
47da14a0
...
@@ -356,7 +356,6 @@ class DistributedDataParallel(Module):
...
@@ -356,7 +356,6 @@ class DistributedDataParallel(Module):
grad_acc
=
param_tmp
.
grad_fn
.
next_functions
[
0
][
0
]
grad_acc
=
param_tmp
.
grad_fn
.
next_functions
[
0
][
0
]
def
allreduce_hook
(
*
unused
):
def
allreduce_hook
(
*
unused
):
if
self
.
prof
:
if
self
.
prof
:
torch
.
cuda
.
nvtx
.
range_push
(
"allreduce_hook"
)
torch
.
cuda
.
nvtx
.
range_push
(
"allreduce_hook"
)
...
...
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