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

(9f2dd765 (Tue Sep 15 08:14:29 2020 -0700))

#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 
)