ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TrilinearDevoxelize.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 TrilinearDevoxelizeKernel(int b,
15  int c,
16  int n,
17  int r,
18  int r2,
19  int r3,
20  bool is_training,
21  const float *__restrict__ coords,
22  const float *__restrict__ feat,
23  int *__restrict__ inds,
24  float *__restrict__ wgts,
25  float *__restrict__ outs);
26 
27 __global__ void TrilinearDevoxelizeGradKernel(int b,
28  int c,
29  int n,
30  int r3,
31  const int *__restrict__ inds,
32  const float *__restrict__ wgts,
33  const float *__restrict__ grad_y,
34  float *__restrict__ grad_x);
35 
36 } // namespace contrib
37 } // namespace ml
38 } // namespace cloudViewer