-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add the support for stack_group_points ops with Ascend (#3023)
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "pytorch_npu_helper.hpp" | ||
|
||
using namespace NPU_NAME_SPACE; | ||
using namespace std; | ||
|
||
void stack_group_points_forward_npu(int b, int c, int n, int nsample, | ||
const Tensor features_tensor, | ||
const Tensor features_batch_cnt_tensor, | ||
const Tensor idx_tensor, | ||
const Tensor idx_batch_cnt_tensor, | ||
Tensor out_tensor) { | ||
EXEC_NPU_CMD(aclnnStackGroupPoints, features_tensor, | ||
features_batch_cnt_tensor, idx_tensor, idx_batch_cnt_tensor, | ||
out_tensor); | ||
} | ||
|
||
void stack_group_points_forward_impl(int b, int c, int n, int nsample, | ||
const Tensor features_tensor, | ||
const Tensor features_batch_cnt_tensor, | ||
const Tensor idx_tensor, | ||
const Tensor idx_batch_cnt_tensor, | ||
Tensor out_tensor); | ||
|
||
REGISTER_NPU_IMPL(stack_group_points_forward_impl, | ||
stack_group_points_forward_npu); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters