Skip to content

Commit

Permalink
lint1
Browse files Browse the repository at this point in the history
  • Loading branch information
hust17yixuan committed Dec 2, 2024
1 parent 007ba98 commit 9a6be87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mmcv/ops/csrc/pytorch/npu/assign_score_withk_npu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ void assign_score_withk_forward_npu(int B, int N0, int N1, int M, int K, int O,
int aggregate, const Tensor& points,
const Tensor& centers, const Tensor& scores,
const Tensor& knn_idx, Tensor& output) {
at::Tensor points_trans = points.permute({0, 3, 1, 2});
at::Tensor centers_trans = centers.permute({0, 3, 1, 2});
EXEC_NPU_CMD(aclnnAssignScoreWithk, points_trans, centers_trans, scores,
knn_idx, B, N0, N1, M, K, O, aggregate, output);
at::Tensor points_trans = points.permute({0, 3, 1, 2});
at::Tensor centers_trans = centers.permute({0, 3, 1, 2});
EXEC_NPU_CMD(aclnnAssignScoreWithk, points_trans, centers_trans, scores,
knn_idx, B, N0, N1, M, K, O, aggregate, output);
}

void assign_score_withk_forward_impl(int B, int N0, int N1, int M, int K, int O,
Expand All @@ -20,4 +20,4 @@ void assign_score_withk_forward_impl(int B, int N0, int N1, int M, int K, int O,
const Tensor& knn_idx, Tensor& output);

REGISTER_NPU_IMPL(assign_score_withk_forward_impl,
assign_score_withk_forward_npu);
assign_score_withk_forward_npu);

0 comments on commit 9a6be87

Please sign in to comment.