From 7bf103ec56b8d58c0d1825e23d0d902bdf1ad3ac Mon Sep 17 00:00:00 2001 From: inter Date: Sun, 21 Sep 2025 20:19:09 +0800 Subject: [PATCH] Add File --- .../pointnet2_stack/src/interpolate_gpu.h | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pcdet/ops/pointnet2/pointnet2_stack/src/interpolate_gpu.h diff --git a/pcdet/ops/pointnet2/pointnet2_stack/src/interpolate_gpu.h b/pcdet/ops/pointnet2/pointnet2_stack/src/interpolate_gpu.h new file mode 100644 index 0000000..12775ec --- /dev/null +++ b/pcdet/ops/pointnet2/pointnet2_stack/src/interpolate_gpu.h @@ -0,0 +1,39 @@ +#ifndef _INTERPOLATE_GPU_H +#define _INTERPOLATE_GPU_H + +#include +#include +#include +#include + + +void three_nn_wrapper_stack(at::Tensor unknown_tensor, + at::Tensor unknown_batch_cnt_tensor, at::Tensor known_tensor, + at::Tensor known_batch_cnt_tensor, at::Tensor dist2_tensor, at::Tensor idx_tensor); + + +void three_interpolate_wrapper_stack(at::Tensor features_tensor, + at::Tensor idx_tensor, at::Tensor weight_tensor, at::Tensor out_tensor); + + + +void three_interpolate_grad_wrapper_stack(at::Tensor grad_out_tensor, at::Tensor idx_tensor, + at::Tensor weight_tensor, at::Tensor grad_features_tensor); + + +void three_nn_kernel_launcher_stack(int batch_size, int N, int M, const float *unknown, + const int *unknown_batch_cnt, const float *known, const int *known_batch_cnt, + float *dist2, int *idx); + + +void three_interpolate_kernel_launcher_stack(int N, int channels, + const float *features, const int *idx, const float *weight, float *out); + + + +void three_interpolate_grad_kernel_launcher_stack(int N, int channels, const float *grad_out, + const int *idx, const float *weight, float *grad_features); + + + +#endif \ No newline at end of file