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
6ebec59c
Unverified
Commit
6ebec59c
authored
Feb 13, 2023
by
Fragile-azalea
Committed by
GitHub
Feb 13, 2023
Browse files
remove synchronize
parent
9303ac18
Changes
1
Hide 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 @
6ebec59c
...
...
@@ -68,7 +68,6 @@ class DistributedGroupedDataParallel(nn.Module):
if
not
no_scale
and
not
reduce_after
:
coalesced
/=
comm
.
size
()
torch
.
distributed
.
all_reduce
(
coalesced
,
group
=
comm
)
torch
.
cuda
.
synchronize
()
if
not
no_scale
and
reduce_after
:
coalesced
/=
comm
.
size
()
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