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
vision
Commits
e92f1195
Unverified
Commit
e92f1195
authored
Feb 24, 2022
by
Vasilis Vryniotis
Committed by
GitHub
Feb 24, 2022
Browse files
Add barrier() after init_process_group() (#5475)
parent
55a8300b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-0
references/classification/utils.py
references/classification/utils.py
+1
-0
references/optical_flow/utils.py
references/optical_flow/utils.py
+1
-0
references/segmentation/utils.py
references/segmentation/utils.py
+1
-0
references/video_classification/utils.py
references/video_classification/utils.py
+1
-0
No files found.
references/classification/utils.py
View file @
e92f1195
...
...
@@ -274,6 +274,7 @@ def init_distributed_mode(args):
torch
.
distributed
.
init_process_group
(
backend
=
args
.
dist_backend
,
init_method
=
args
.
dist_url
,
world_size
=
args
.
world_size
,
rank
=
args
.
rank
)
torch
.
distributed
.
barrier
()
setup_for_distributed
(
args
.
rank
==
0
)
...
...
references/optical_flow/utils.py
View file @
e92f1195
...
...
@@ -267,6 +267,7 @@ def setup_ddp(args):
world_size
=
args
.
world_size
,
init_method
=
args
.
dist_url
,
)
torch
.
distributed
.
barrier
()
def
reduce_across_processes
(
val
):
...
...
references/segmentation/utils.py
View file @
e92f1195
...
...
@@ -291,4 +291,5 @@ def init_distributed_mode(args):
torch
.
distributed
.
init_process_group
(
backend
=
args
.
dist_backend
,
init_method
=
args
.
dist_url
,
world_size
=
args
.
world_size
,
rank
=
args
.
rank
)
torch
.
distributed
.
barrier
()
setup_for_distributed
(
args
.
rank
==
0
)
references/video_classification/utils.py
View file @
e92f1195
...
...
@@ -250,4 +250,5 @@ def init_distributed_mode(args):
torch
.
distributed
.
init_process_group
(
backend
=
args
.
dist_backend
,
init_method
=
args
.
dist_url
,
world_size
=
args
.
world_size
,
rank
=
args
.
rank
)
torch
.
distributed
.
barrier
()
setup_for_distributed
(
args
.
rank
==
0
)
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