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
"docs/source/vscode:/vscode.git/clone" did not exist on "7d8522a29f3ea07d921fb54e4f4b723fc108ac6d"
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):
...
@@ -32,6 +32,9 @@ class ThreeNN(Function):
idx
=
torch
.
cuda
.
IntTensor
(
B
,
N
,
3
)
idx
=
torch
.
cuda
.
IntTensor
(
B
,
N
,
3
)
interpolate_ext
.
three_nn_wrapper
(
B
,
N
,
m
,
target
,
source
,
dist2
,
idx
)
interpolate_ext
.
three_nn_wrapper
(
B
,
N
,
m
,
target
,
source
,
dist2
,
idx
)
ctx
.
mark_non_differentiable
(
idx
)
return
torch
.
sqrt
(
dist2
),
idx
return
torch
.
sqrt
(
dist2
),
idx
@
staticmethod
@
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