10 #include <torch/script.h>
14 template <
class TFeat,
class TOut,
class TIndex,
class TKernelIndex>
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,
23 const int64_t max_temp_mem_MB,
24 torch::Tensor& out_features);
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,
36 const int64_t max_temp_mem_MB,
37 torch::Tensor& out_features);
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