ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
InterpolatePoints.cuh
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 namespace cloudViewer {
11 namespace ml {
12 namespace contrib {
13 
14 __global__ void three_nn_kernel(int b,
15  int n,
16  int m,
17  const float *__restrict__ unknown,
18  const float *__restrict__ known,
19  float *__restrict__ dist2,
20  int *__restrict__ idx);
21 
22 __global__ void three_interpolate_kernel(int b,
23  int c,
24  int m,
25  int n,
26  const float *__restrict__ points,
27  const int *__restrict__ idx,
28  const float *__restrict__ weight,
29  float *__restrict__ out);
30 
31 __global__ void three_interpolate_grad_kernel(
32  int b,
33  int c,
34  int n,
35  int m,
36  const float *__restrict__ grad_out,
37  const int *__restrict__ idx,
38  const float *__restrict__ weight,
39  float *__restrict__ grad_points);
40 
41 } // namespace contrib
42 } // namespace ml
43 } // namespace cloudViewer