#include #include #include #include "ball_query_cuda_kernel.h" void ball_query_cuda(int m, int nsample, float min_radius, float max_radius, at::Tensor xyz_tensor, at::Tensor new_xyz_tensor, at::Tensor offset_tensor, at::Tensor new_offset_tensor, at::Tensor idx_tensor, at::Tensor dist2_tensor) { const float *xyz = xyz_tensor.data_ptr(); const float *new_xyz = new_xyz_tensor.data_ptr(); const int *offset = offset_tensor.data_ptr(); const int *new_offset = new_offset_tensor.data_ptr(); int *idx = idx_tensor.data_ptr(); float *dist2 = dist2_tensor.data_ptr(); ball_query_cuda_launcher(m, nsample, min_radius, max_radius, xyz, new_xyz, offset, new_offset, idx, dist2); }