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
241dd6c4
Unverified
Commit
241dd6c4
authored
Dec 21, 2018
by
mcarilli
Committed by
GitHub
Dec 21, 2018
Browse files
Merge pull request #110 from rxy1212/master
Update __init__.py
parents
a99e1875
f429381e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
apex/parallel/__init__.py
apex/parallel/__init__.py
+6
-2
No files found.
apex/parallel/__init__.py
View file @
241dd6c4
...
...
@@ -4,13 +4,17 @@ import torch
# https://github.com/pytorch/pytorch/pull/14767
if
hasattr
(
torch
.
distributed
,
'get_default_group'
):
group_creator
=
torch
.
distributed
.
get_default_group
el
se
:
el
if
hasattr
(
torch
.
distributed
,
'new_group'
)
:
group_creator
=
torch
.
distributed
.
new_group
else
:
group_creator
=
torch
.
distributed
.
deprecated
.
new_group
if
hasattr
(
torch
.
distributed
,
'ReduceOp'
):
ReduceOp
=
torch
.
distributed
.
ReduceOp
el
se
:
el
if
hasattr
(
torch
.
distributed
,
'reduce_op'
)
:
ReduceOp
=
torch
.
distributed
.
reduce_op
else
:
ReduceOp
=
torch
.
distributed
.
deprecated
.
reduce_op
from
.distributed
import
DistributedDataParallel
,
Reducer
try
:
...
...
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