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
MMCV
Commits
688e6abe
Unverified
Commit
688e6abe
authored
Sep 07, 2019
by
Kai Chen
Committed by
GitHub
Sep 07, 2019
Browse files
call dist.is_initialized() after checking the availability (#128)
parent
22ba143d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mmcv/runner/utils.py
mmcv/runner/utils.py
+4
-1
No files found.
mmcv/runner/utils.py
View file @
688e6abe
...
@@ -18,7 +18,10 @@ def get_dist_info():
...
@@ -18,7 +18,10 @@ def get_dist_info():
if
torch
.
__version__
<
'1.0'
:
if
torch
.
__version__
<
'1.0'
:
initialized
=
dist
.
_initialized
initialized
=
dist
.
_initialized
else
:
else
:
initialized
=
dist
.
is_initialized
()
if
dist
.
is_available
():
initialized
=
dist
.
is_initialized
()
else
:
initialized
=
False
if
initialized
:
if
initialized
:
rank
=
dist
.
get_rank
()
rank
=
dist
.
get_rank
()
world_size
=
dist
.
get_world_size
()
world_size
=
dist
.
get_world_size
()
...
...
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