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
b8d0e81f
Unverified
Commit
b8d0e81f
authored
Feb 13, 2023
by
Rick Ho
Committed by
GitHub
Feb 13, 2023
Browse files
Merge pull request #144 from Fragile-azalea/master
remove synchronize
parents
9303ac18
6ebec59c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
fmoe/distributed.py
fmoe/distributed.py
+0
-1
No files found.
fmoe/distributed.py
View file @
b8d0e81f
...
@@ -68,7 +68,6 @@ class DistributedGroupedDataParallel(nn.Module):
...
@@ -68,7 +68,6 @@ class DistributedGroupedDataParallel(nn.Module):
if
not
no_scale
and
not
reduce_after
:
if
not
no_scale
and
not
reduce_after
:
coalesced
/=
comm
.
size
()
coalesced
/=
comm
.
size
()
torch
.
distributed
.
all_reduce
(
coalesced
,
group
=
comm
)
torch
.
distributed
.
all_reduce
(
coalesced
,
group
=
comm
)
torch
.
cuda
.
synchronize
()
if
not
no_scale
and
reduce_after
:
if
not
no_scale
and
reduce_after
:
coalesced
/=
comm
.
size
()
coalesced
/=
comm
.
size
()
synced
=
_unflatten_dense_tensors
(
coalesced
,
grads
)
synced
=
_unflatten_dense_tensors
(
coalesced
,
grads
)
...
...
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