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
ea53ed02
Unverified
Commit
ea53ed02
authored
Oct 08, 2023
by
sherie
Committed by
GitHub
Oct 08, 2023
Browse files
Use unified interface in Ascend kernel (#2945)
parent
f2439cd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/csrc/pytorch/npu/voxelization_npu.cpp
mmcv/ops/csrc/pytorch/npu/voxelization_npu.cpp
+1
-1
No files found.
mmcv/ops/csrc/pytorch/npu/voxelization_npu.cpp
View file @
ea53ed02
...
...
@@ -18,7 +18,7 @@ int hard_voxelize_forward_npu(const at::Tensor &points, at::Tensor &voxels,
const
std
::
vector
<
float
>
coors_range
,
const
int
max_points
,
const
int
max_voxels
,
const
int
NDim
=
3
)
{
at
::
Tensor
voxel_num_tmp
=
OpPreparation
::
ApplyTensor
(
points
,
{
1
}
);
at
::
Tensor
voxel_num_tmp
=
at
::
empty
({
1
},
points
.
options
()
);
at
::
Tensor
voxel_num
=
voxel_num_tmp
.
to
(
at
::
kInt
);
at
::
Tensor
voxel_size_cpu
=
at
::
from_blob
(
...
...
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