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
878ad2e0
"git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "e685140975ca203242e826e13b088654509d6620"
Unverified
Commit
878ad2e0
authored
Apr 07, 2022
by
cheng052
Committed by
GitHub
Apr 07, 2022
Browse files
mark idx in BallQuery as non_differentiable (#919)
parent
fd20aabc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
+6
-2
No files found.
pcdet/ops/pointnet2/pointnet2_stack/pointnet2_utils.py
View file @
878ad2e0
...
@@ -35,11 +35,15 @@ class BallQuery(Function):
...
@@ -35,11 +35,15 @@ class BallQuery(Function):
pointnet2
.
ball_query_wrapper
(
B
,
M
,
radius
,
nsample
,
new_xyz
,
new_xyz_batch_cnt
,
xyz
,
xyz_batch_cnt
,
idx
)
pointnet2
.
ball_query_wrapper
(
B
,
M
,
radius
,
nsample
,
new_xyz
,
new_xyz_batch_cnt
,
xyz
,
xyz_batch_cnt
,
idx
)
empty_ball_mask
=
(
idx
[:,
0
]
==
-
1
)
empty_ball_mask
=
(
idx
[:,
0
]
==
-
1
)
idx
[
empty_ball_mask
]
=
0
idx
[
empty_ball_mask
]
=
0
ctx
.
mark_non_differentiable
(
idx
)
ctx
.
mark_non_differentiable
(
empty_ball_mask
)
return
idx
,
empty_ball_mask
return
idx
,
empty_ball_mask
@
staticmethod
@
staticmethod
def
backward
(
ctx
,
a
=
None
):
def
backward
(
ctx
,
a
=
None
,
b
=
None
):
return
None
,
None
,
None
,
None
return
None
,
None
,
None
,
None
,
None
,
None
ball_query
=
BallQuery
.
apply
ball_query
=
BallQuery
.
apply
...
...
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