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
e7beba17
Commit
e7beba17
authored
Apr 27, 2019
by
Michael Carilli
Browse files
syntax
parent
d175acb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/parallel/distributed.py
apex/parallel/distributed.py
+1
-1
No files found.
apex/parallel/distributed.py
View file @
e7beba17
...
@@ -603,7 +603,7 @@ class DistributedDataParallel(Module):
...
@@ -603,7 +603,7 @@ class DistributedDataParallel(Module):
if
self
.
allreduce_different_streams
:
if
self
.
allreduce_different_streams
:
if
not
self
.
bucket_streams
:
if
not
self
.
bucket_streams
:
self
.
bucket_streams
=
[
torch
.
cuda
.
Stream
()
for
_
in
range
(
self
.
num_allreduce_streams
)]
self
.
bucket_streams
=
[
torch
.
cuda
.
Stream
()
for
_
in
range
(
self
.
num_allreduce_streams
)]
sel
e
.
bucket_events
=
[
torch
.
cuda
.
Event
(
enable_timing
=
False
,
sel
f
.
bucket_events
=
[
torch
.
cuda
.
Event
(
enable_timing
=
False
,
blocking
=
False
)
for
_
in
range
(
self
.
num_allreduce_streams
)]
blocking
=
False
)
for
_
in
range
(
self
.
num_allreduce_streams
)]
else
:
else
:
if
not
self
.
bucket_streams
:
if
not
self
.
bucket_streams
:
...
...
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