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
OpenPCDet
Commits
e496d248
Commit
e496d248
authored
Dec 27, 2021
by
Shaoshuai Shi
Browse files
Merge branch 'dev_v0.5' into dev_v0.5_pvrcnn++
parents
684dc231
1f5b7872
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pcdet/utils/common_utils.py
pcdet/utils/common_utils.py
+3
-3
No files found.
pcdet/utils/common_utils.py
View file @
e496d248
...
@@ -166,9 +166,9 @@ def init_dist_pytorch(tcp_port, local_rank, backend='nccl'):
...
@@ -166,9 +166,9 @@ def init_dist_pytorch(tcp_port, local_rank, backend='nccl'):
torch
.
cuda
.
set_device
(
local_rank
%
num_gpus
)
torch
.
cuda
.
set_device
(
local_rank
%
num_gpus
)
dist
.
init_process_group
(
dist
.
init_process_group
(
backend
=
backend
,
backend
=
backend
,
init_method
=
'tcp://127.0.0.1:%d'
%
tcp_port
,
#
init_method='tcp://127.0.0.1:%d' % tcp_port,
rank
=
local_rank
,
#
rank=local_rank,
world_size
=
num_gpus
#
world_size=num_gpus
)
)
rank
=
dist
.
get_rank
()
rank
=
dist
.
get_rank
()
return
num_gpus
,
rank
return
num_gpus
,
rank
...
...
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