baseline_null / pc_util /src /group_points_gpu.h
WatsonTang98's picture
Upload 21 files
e8ffc70 verified
raw
history blame
1.65 kB
#ifndef _GROUP_POINTS_GPU_H
#define _GROUP_POINTS_GPU_H
#include <torch/serialize/tensor.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <vector>
int group_points_wrapper_fast(int b, int c, int n, int npoints, int nsample,
at::Tensor points_tensor, at::Tensor idx_tensor, at::Tensor out_tensor);
void group_points_kernel_launcher_fast(int b, int c, int n, int npoints, int nsample,
const float *points, const int *idx, float *out);
int group_points_grad_wrapper_fast(int b, int c, int n, int npoints, int nsample,
at::Tensor grad_out_tensor, at::Tensor idx_tensor, at::Tensor grad_points_tensor);
void group_points_grad_kernel_launcher_fast(int b, int c, int n, int npoints, int nsample,
const float *grad_out, const int *idx, float *grad_points);
int group_points_wrapper_stack(int B, int M, int C, int nsample,
at::Tensor features_tensor, at::Tensor features_batch_cnt_tensor,
at::Tensor idx_tensor, at::Tensor idx_batch_cnt_tensor, at::Tensor out_tensor);
void group_points_kernel_launcher_stack(int B, int M, int C, int nsample,
const float *features, const int *features_batch_cnt, const int *idx, const int *idx_batch_cnt, float *out);
int group_points_grad_wrapper_stack(int B, int M, int C, int N, int nsample,
at::Tensor grad_out_tensor, at::Tensor idx_tensor, at::Tensor idx_batch_cnt_tensor,
at::Tensor features_batch_cnt_tensor, at::Tensor grad_features_tensor);
void group_points_grad_kernel_launcher_stack(int B, int M, int C, int N, int nsample,
const float *grad_out, const int *idx, const int *idx_batch_cnt, const int *features_batch_cnt, float *grad_features);
#endif