MCPcopy Create free account
hub / github.com/csuhan/OneLLM / gather_points_grad_wrapper_fast

Function gather_points_grad_wrapper_fast

model/lib/pointnet2/src/sampling.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22int gather_points_grad_wrapper_fast(int b, int c, int n, int npoints,
23 at::Tensor grad_out_tensor, at::Tensor idx_tensor, at::Tensor grad_points_tensor) {
24
25 const float *grad_out = grad_out_tensor.data<float>();
26 const int *idx = idx_tensor.data<int>();
27 float *grad_points = grad_points_tensor.data<float>();
28
29 cudaStream_t stream = at::cuda::getCurrentCUDAStream().stream();
30 gather_points_grad_kernel_launcher_fast(b, c, n, npoints, grad_out, idx, grad_points, stream);
31 return 1;
32}
33
34
35int furthest_point_sampling_wrapper(int b, int n, int m,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected