Skip to content

Commit

Permalink
Use unified interface in Ascend kernel (#2945)
Browse files Browse the repository at this point in the history
  • Loading branch information
momo609 committed Oct 8, 2023
1 parent f2439cd commit ea53ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/pytorch/npu/voxelization_npu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ea53ed0

Please sign in to comment.