Skip to content

Commit

Permalink
Merge pull request #51 from DaGaiBa/rc4main
Browse files Browse the repository at this point in the history
Interfaces change.
  • Loading branch information
momo609 committed Jul 19, 2024
2 parents e112ca4 + f572475 commit 44afa6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mmcv/ops/scatter_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def forward(ctx: Any,
ctx.device = feats.device.type
if ctx.device == 'npu':
import ads_c
voxel_idx = ads_c.point_to_voxel(coors, None, None)
voxel_idx = ads_c.point_to_voxel(coors, [], [])
unique_res = ads_c.unique_voxel(voxel_idx)
num_voxels, uniqued_voxel_idx, prefix_sum, \
argsort_coor = unique_res
voxel_coors = ads_c.voxel_to_point(uniqued_voxel_idx, None, None)
argsort_coor, _ = unique_res
voxel_coors = ads_c.voxel_to_point(uniqued_voxel_idx, [], [])
voxel_feats, \
compare_mask = ads_c.npu_dynamic_scatter(feats, coors,
prefix_sum,
Expand Down

0 comments on commit 44afa6a

Please sign in to comment.