Open3D (C++ API)  0.18.0
SparseConvBackpropFilterOpKernel.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 SparseConvBackpropFilterCPU(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 torch::Tensor& out_features_gradient,
23  const bool normalize,
24  const int64_t max_temp_mem_MB,
25  torch::Tensor& filter_backprop);
26 
27 #ifdef BUILD_CUDA_MODULE
28 template <class TFeat, class TOut, class TIndex, class TKernelIndex>
29 void SparseConvBackpropFilterCUDA(const torch::Tensor& filters,
30  const torch::Tensor& inp_features,
31  const torch::Tensor& inp_importance,
32  const torch::Tensor& neighbors_index,
33  const torch::Tensor& neighbors_kernel_index,
34  const torch::Tensor& neighbors_importance,
35  const torch::Tensor& neighbors_row_splits,
36  const torch::Tensor& out_features_gradient,
37  const bool normalize,
38  const int64_t max_temp_mem_MB,
39  torch::Tensor& filter_backprop);
40 #endif
void SparseConvBackpropFilterCPU(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 torch::Tensor &out_features_gradient, const bool normalize, const int64_t max_temp_mem_MB, torch::Tensor &filter_backprop)
Definition: SparseConvBackpropFilterOpKernel.cpp:18