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
8cac7c25
Unverified
Commit
8cac7c25
authored
Sep 26, 2021
by
Zaida Zhou
Committed by
GitHub
Sep 26, 2021
Browse files
[Refactor] Remove outdated code (#1370)
parent
a90b3978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
mmcv/runner/dist_utils.py
mmcv/runner/dist_utils.py
+1
-11
No files found.
mmcv/runner/dist_utils.py
View file @
8cac7c25
...
...
@@ -10,8 +10,6 @@ from torch import distributed as dist
from
torch._utils
import
(
_flatten_dense_tensors
,
_take_tensors
,
_unflatten_dense_tensors
)
from
mmcv.utils
import
TORCH_VERSION
,
digit_version
def
init_dist
(
launcher
,
backend
=
'nccl'
,
**
kwargs
):
if
mp
.
get_start_method
(
allow_none
=
True
)
is
None
:
...
...
@@ -78,15 +76,7 @@ def _init_dist_slurm(backend, port=None):
def
get_dist_info
():
if
(
TORCH_VERSION
!=
'parrots'
and
digit_version
(
TORCH_VERSION
)
<
digit_version
(
'1.0'
)):
initialized
=
dist
.
_initialized
else
:
if
dist
.
is_available
():
initialized
=
dist
.
is_initialized
()
else
:
initialized
=
False
if
initialized
:
if
dist
.
is_available
()
and
dist
.
is_initialized
():
rank
=
dist
.
get_rank
()
world_size
=
dist
.
get_world_size
()
else
:
...
...
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