Skip to content

Commit

Permalink
Interfaces change.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaGaiBa committed Jul 19, 2024
1 parent e112ca4 commit f572475
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 f572475

Please sign in to comment.