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
MMCV
Commits
46ea829b
Unverified
Commit
46ea829b
authored
Feb 02, 2023
by
liuduanhui
Committed by
GitHub
Feb 02, 2023
Browse files
[Fix] Fix tensor descriptor setting in MLU ball_query. (#2579)
parent
497c2df4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mmcv/ops/csrc/pytorch/mlu/ball_query_mlu.cpp
mmcv/ops/csrc/pytorch/mlu/ball_query_mlu.cpp
+5
-5
No files found.
mmcv/ops/csrc/pytorch/mlu/ball_query_mlu.cpp
View file @
46ea829b
...
@@ -14,11 +14,6 @@
...
@@ -14,11 +14,6 @@
void
ball_query_forward_mlu
(
int
b
,
int
n
,
int
m
,
float
min_radius
,
void
ball_query_forward_mlu
(
int
b
,
int
n
,
int
m
,
float
min_radius
,
float
max_radius
,
int
nsample
,
const
Tensor
new_xyz
,
float
max_radius
,
int
nsample
,
const
Tensor
new_xyz
,
const
Tensor
xyz
,
Tensor
idx
)
{
const
Tensor
xyz
,
Tensor
idx
)
{
MluOpTensorDescriptor
new_xyz_desc
,
xyz_desc
,
idx_desc
;
new_xyz_desc
.
set
(
new_xyz
);
xyz_desc
.
set
(
xyz
);
idx_desc
.
set
(
idx
);
auto
new_xyz_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
auto
new_xyz_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
new_xyz
,
new_xyz
.
suggest_memory_format
());
new_xyz
,
new_xyz
.
suggest_memory_format
());
auto
xyz_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
auto
xyz_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
...
@@ -26,6 +21,11 @@ void ball_query_forward_mlu(int b, int n, int m, float min_radius,
...
@@ -26,6 +21,11 @@ void ball_query_forward_mlu(int b, int n, int m, float min_radius,
auto
idx_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
auto
idx_contiguous
=
torch_mlu
::
cnnl
::
ops
::
cnnl_contiguous
(
idx
,
new_xyz
.
suggest_memory_format
());
idx
,
new_xyz
.
suggest_memory_format
());
MluOpTensorDescriptor
new_xyz_desc
,
xyz_desc
,
idx_desc
;
new_xyz_desc
.
set
(
new_xyz_contiguous
);
xyz_desc
.
set
(
xyz_contiguous
);
idx_desc
.
set
(
idx_contiguous
);
auto
new_xyz_impl
=
torch_mlu
::
getMluTensorImpl
(
new_xyz_contiguous
);
auto
new_xyz_impl
=
torch_mlu
::
getMluTensorImpl
(
new_xyz_contiguous
);
auto
xyz_impl
=
torch_mlu
::
getMluTensorImpl
(
xyz_contiguous
);
auto
xyz_impl
=
torch_mlu
::
getMluTensorImpl
(
xyz_contiguous
);
auto
idx_impl
=
torch_mlu
::
getMluTensorImpl
(
idx_contiguous
);
auto
idx_impl
=
torch_mlu
::
getMluTensorImpl
(
idx_contiguous
);
...
...
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