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
mmdetection3d
Commits
9802d411
Unverified
Commit
9802d411
authored
Apr 04, 2021
by
Wenwei Zhang
Committed by
GitHub
Apr 04, 2021
Browse files
Fix Pytorch 1.8 Compilation issue (#404)
* fix pt1.8 issues * fix pt1.8 issues
parent
e3813185
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
.github/workflows/build.yml
.github/workflows/build.yml
+5
-1
mmdet3d/ops/voxel/src/scatter_points_cuda.cu
mmdet3d/ops/voxel/src/scatter_points_cuda.cu
+1
-1
No files found.
.github/workflows/build.yml
View file @
9802d411
...
...
@@ -38,7 +38,7 @@ jobs:
strategy
:
matrix
:
python-version
:
[
3.6
,
3.7
]
torch
:
[
1.5.0+cu101
,
1.6.0+cu101
,
1.7.0+cu101
]
torch
:
[
1.5.0+cu101
,
1.6.0+cu101
,
1.7.0+cu101
,
1.8.0+cu101
]
include
:
-
torch
:
1.5.0+cu101
torchvision
:
0.6.0+cu101
...
...
@@ -52,6 +52,10 @@ jobs:
mmcv
:
1.7.0+cu101
torchvision
:
0.8.1+cu101
cuda_arch
:
"
7.0"
-
torch
:
1.8.0+cu101
mmcv
:
1.8.0+cu101
torchvision
:
0.9.0+cu101
cuda_arch
:
"
7.0"
steps
:
-
uses
:
actions/checkout@v2
...
...
mmdet3d/ops/voxel/src/scatter_points_cuda.cu
View file @
9802d411
...
...
@@ -269,7 +269,7 @@ std::vector<at::Tensor> dynamic_point_to_voxel_forward_gpu(
AT_CUDA_CHECK
(
cudaGetLastError
());
coors_map_sorted
=
coors_map_sorted
.
cumsum
(
0
,
torch
::
kInt32
);
coors_map
.
index_put_
(
coors_id_argsort
,
coors_map_sorted
);
coors_map
.
index_put_
(
{
coors_id_argsort
}
,
coors_map_sorted
);
const
int
num_coors_cpu
=
coors_map_sorted
[
-
1
].
cpu
().
data_ptr
<
int32_t
>
()[
0
]
+
1
;
...
...
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