Open3D (C++ API)  0.18.0+252c867
SparseConvOpKernel.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 //
8 #pragma once
9 
10 #include <torch/script.h>
11 
12 #include <vector>
13 
14 template <class TFeat, class TOut, class TIndex, class TKernelIndex>
15 void SparseConvCPU(const torch::Tensor& filters,
16  const torch::Tensor& inp_features,
17  const torch::Tensor& inp_importance,
18  const torch::Tensor& neighbors_index,
19  const torch::Tensor& neighbors_kernel_index,
20  const torch::Tensor& neighbors_importance,
21  const torch::Tensor& neighbors_row_splits,
22  const bool normalize,
23  const int64_t max_temp_mem_MB,
24  torch::Tensor& out_features);
25 
26 #ifdef BUILD_CUDA_MODULE
27 template <class TFeat, class TOut, class TIndex, class TKernelIndex>
28 void SparseConvCUDA(const torch::Tensor& filters,
29  const torch::Tensor& inp_features,
30  const torch::Tensor& inp_importance,
31  const torch::Tensor& neighbors_index,
32  const torch::Tensor& neighbors_kernel_index,
33  const torch::Tensor& neighbors_importance,
34  const torch::Tensor& neighbors_row_splits,
35  const bool normalize,
36  const int64_t max_temp_mem_MB,
37  torch::Tensor& out_features);
38 #endif
void SparseConvCPU(const torch::Tensor &filters, const torch::Tensor &inp_features, const torch::Tensor &inp_importance, const torch::Tensor &neighbors_index, const torch::Tensor &neighbors_kernel_index, const torch::Tensor &neighbors_importance, const torch::Tensor &neighbors_row_splits, const bool normalize, const int64_t max_temp_mem_MB, torch::Tensor &out_features)
Definition: SparseConvOpKernel.cpp:18