Spaces:
Running
Running
Download Pointcept/libs/pointops/src/ball_query/ball_query_cuda.cpp from ziqima/Find3D: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/spaces/ziqima/Find3D/resolve/main/Pointcept/libs/pointops/src/ball_query/ball_query_cuda.cpp
- Command line
-
hf download hf://spaces/ziqima/Find3D/Pointcept/libs/pointops/src/ball_query/ball_query_cuda.cpp
-
curl -L -o ball_query_cuda.cpp https://huggingface.co/spaces/ziqima/Find3D/resolve/main/Pointcept/libs/pointops/src/ball_query/ball_query_cuda.cpp
884 Bytes
| 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<float>(); | |
| const float *new_xyz = new_xyz_tensor.data_ptr<float>(); | |
| const int *offset = offset_tensor.data_ptr<int>(); | |
| const int *new_offset = new_offset_tensor.data_ptr<int>(); | |
| int *idx = idx_tensor.data_ptr<int>(); | |
| float *dist2 = dist2_tensor.data_ptr<float>(); | |
| ball_query_cuda_launcher(m, nsample, min_radius, max_radius, xyz, new_xyz, offset, new_offset, idx, dist2); | |
| } | |