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
FastMoE
Commits
b9084e90
Commit
b9084e90
authored
Jan 13, 2021
by
Jiezhong Qiu
Browse files
Merge branch 'master' of github.com:xptree/poly-xfmr
parents
6b38250f
46e6342e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch/cuda/moe_test.py
pytorch/cuda/moe_test.py
+1
-1
No files found.
pytorch/cuda/moe_test.py
View file @
b9084e90
...
@@ -159,7 +159,7 @@ def test_dp():
...
@@ -159,7 +159,7 @@ def test_dp():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
torch
.
distributed
.
init_process_group
(
backend
=
'mpi'
)
torch
.
distributed
.
init_process_group
(
backend
=
'mpi'
)
world_size
=
torch
.
distributed
.
get_world_size
()
world_size
=
torch
.
distributed
.
get_world_size
()
if
len
(
sys
.
argv
)
=
=
2
:
if
len
(
sys
.
argv
)
>
=
2
:
task
=
sys
.
argv
[
1
]
task
=
sys
.
argv
[
1
]
print
(
'Specificed task {}'
.
format
(
task
))
print
(
'Specificed task {}'
.
format
(
task
))
if
task
==
'correctness'
:
if
task
==
'correctness'
:
...
...
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