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
1feb8917
Unverified
Commit
1feb8917
authored
Mar 24, 2021
by
Yezhen Cong
Committed by
GitHub
Mar 24, 2021
Browse files
mark tensor not differentiable (#377)
parent
22c47ac7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mmdet3d/ops/interpolate/three_nn.py
mmdet3d/ops/interpolate/three_nn.py
+3
-0
No files found.
mmdet3d/ops/interpolate/three_nn.py
View file @
1feb8917
...
...
@@ -32,6 +32,9 @@ class ThreeNN(Function):
idx
=
torch
.
cuda
.
IntTensor
(
B
,
N
,
3
)
interpolate_ext
.
three_nn_wrapper
(
B
,
N
,
m
,
target
,
source
,
dist2
,
idx
)
ctx
.
mark_non_differentiable
(
idx
)
return
torch
.
sqrt
(
dist2
),
idx
@
staticmethod
...
...
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