Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
ml
pytorch
misc
RaggedToDenseOpKernel.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
//
8
#pragma once
9
10
#include "torch/script.h"
11
12
template
<
class
T>
13
torch::Tensor
RaggedToDenseCPU
(
const
torch::Tensor& values,
14
const
torch::Tensor& row_splits,
15
const
int64_t out_col_size,
16
const
torch::Tensor& default_value);
17
18
#ifdef BUILD_CUDA_MODULE
19
template
<
class
T>
20
torch::Tensor RaggedToDenseCUDA(
const
torch::Tensor& values,
21
const
torch::Tensor& row_splits,
22
const
int64_t out_col_size,
23
const
torch::Tensor& default_value);
24
#endif
RaggedToDenseCPU
torch::Tensor RaggedToDenseCPU(const torch::Tensor &values, const torch::Tensor &row_splits, const int64_t out_col_size, const torch::Tensor &default_value)
Definition
RaggedToDenseOpKernel.cpp:16
Generated by
1.17.0