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
846cf3ed
Unverified
Commit
846cf3ed
authored
Apr 13, 2022
by
xiangruhuang
Committed by
GitHub
Apr 13, 2022
Browse files
skip backprop in case no grouped indices are available (#926)
parent
878ad2e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
+5
-4
No files found.
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
View file @
846cf3ed
...
@@ -441,6 +441,7 @@ class VectorPoolWithVoxelQuery(Function):
...
@@ -441,6 +441,7 @@ class VectorPoolWithVoxelQuery(Function):
point_cnt_of_grid
,
grouped_idxs
,
N
,
num_c_in
=
ctx
.
vector_pool_for_backward
point_cnt_of_grid
,
grouped_idxs
,
N
,
num_c_in
=
ctx
.
vector_pool_for_backward
grad_support_features
=
grad_new_features
.
new_zeros
((
N
,
num_c_in
))
grad_support_features
=
grad_new_features
.
new_zeros
((
N
,
num_c_in
))
if
grouped_idxs
.
shape
[
0
]
>
0
:
pointnet2
.
vector_pool_grad_wrapper
(
pointnet2
.
vector_pool_grad_wrapper
(
grad_new_features
.
contiguous
(),
point_cnt_of_grid
,
grouped_idxs
,
grad_new_features
.
contiguous
(),
point_cnt_of_grid
,
grouped_idxs
,
grad_support_features
grad_support_features
...
...
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