PointFlow/metrics/pytorch_structural_losses/pybind/bind.cpp

16 lines
343 B
C++
Raw Permalink Normal View History

2019-07-14 04:32:26 +00:00
#include <string>
#include <torch/extension.h>
#include "pybind/extern.hpp"
namespace py = pybind11;
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m){
m.def("ApproxMatch", &ApproxMatch);
m.def("MatchCost", &MatchCost);
m.def("MatchCostGrad", &MatchCostGrad);
m.def("NNDistance", &NNDistance);
m.def("NNDistanceGrad", &NNDistanceGrad);
}