Open3D (C++ API)  0.12.0
Macros | Functions
KnnSearchOpKernel.cpp File Reference

(313315d (Wed Dec 23 23:39:47 2020 -0800))

#include "open3d/ml/impl/misc/KnnSearch.h"
#include "open3d/ml/pytorch/TorchHelper.h"
#include "open3d/ml/pytorch/misc/NeighborSearchAllocator.h"
#include "torch/script.h"

Macros

#define INSTANTIATE(T)
 

Functions

template<class T >
void KnnSearchCPU (const torch::Tensor &points, const torch::Tensor &queries, const int64_t k, const torch::Tensor &points_row_splits, const torch::Tensor &queries_row_splits, const Metric metric, const bool ignore_query_point, const bool return_distances, torch::Tensor &neighbors_index, torch::Tensor &neighbors_row_splits, torch::Tensor &neighbors_distance)
 

Macro Definition Documentation

◆ INSTANTIATE

#define INSTANTIATE (   T)
Value:
template void KnnSearchCPU<T>( \
const torch::Tensor& points, const torch::Tensor& queries, \
const int64_t k, const torch::Tensor& points_row_splits, \
const torch::Tensor& queries_row_splits, const Metric metric, \
const bool ignore_query_point, const bool return_distances, \
torch::Tensor& neighbors_index, \
torch::Tensor& neighbors_row_splits, \
torch::Tensor& neighbors_distance);
Metric
Supported metrics.
Definition: NeighborSearchCommon.h:38
int points
Definition: FilePCD.cpp:73

Function Documentation

◆ KnnSearchCPU()

template<class T >
void KnnSearchCPU ( const torch::Tensor &  points,
const torch::Tensor &  queries,
const int64_t  k,
const torch::Tensor &  points_row_splits,
const torch::Tensor &  queries_row_splits,
const Metric  metric,
const bool  ignore_query_point,
const bool  return_distances,
torch::Tensor &  neighbors_index,
torch::Tensor &  neighbors_row_splits,
torch::Tensor &  neighbors_distance 
)